Skip to content

Latest commit

 

History

History
1356 lines (926 loc) · 37 KB

ConstantEntity.md

File metadata and controls

1356 lines (926 loc) · 37 KB

BumbleDocGen / Technical description of the project / Class map / ConstantEntity


namespace BumbleDocGen\LanguageHandler\Php\Parser\Entity;

class ConstantEntity extends \BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity implements \BumbleDocGen\Core\Parser\Entity\Cache\CacheableEntityInterface, \BumbleDocGen\Core\Parser\Entity\EntityInterface
Class constant entity

Initialization methods:

  1. __construct

Methods:

  1. entityCacheIsOutdated
  2. getAbsoluteFileName - Returns the absolute path to a file if it can be retrieved and if the file is in the project directory
  3. getCacheKey
  4. getCachedEntityDependencies
  5. getDescription
  6. getDescriptionLinks - Get parsed links from description and doc blocks `see` and `link`
  7. getDocBlock
  8. getDocComment - Get the doc comment of an entity
  9. getDocCommentEntity
  10. getDocNote
  11. getEndLine
  12. getExamples - Get parsed examples from `examples` doc block
  13. getFileName
  14. getFileSourceLink
  15. getFirstExample - Get first example from @examples doc block
  16. getImplementingClass
  17. getImplementingClassName
  18. getImplementingReflectionClass
  19. getName
  20. getNamespaceName
  21. getObjectId - Get entity unique ID
  22. getPhpHandlerSettings
  23. getRootEntity
  24. getRootEntityCollection - Get parent collection of entities
  25. getShortName
  26. getStartLine
  27. getThrows - Get parsed throws from `throws` doc block
  28. hasDescriptionLinks
  29. hasExamples
  30. hasThrows
  31. isDeprecated
  32. isEntityDataCacheOutdated
  33. isEntityFileCanBeLoad
  34. isInternal
  35. isPrivate
  36. isProtected
  37. isPublic
  38. reloadEntityDependenciesCache
  39. removeEntityValueFromCache
  40. removeNotUsedEntityDataCache

Method details:

public function __construct(\BumbleDocGen\Core\Configuration\Configuration $configuration, \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntity $classEntity, \BumbleDocGen\LanguageHandler\Php\Parser\ParserHelper $parserHelper, \BumbleDocGen\Core\Cache\LocalCache\LocalObjectCache $localObjectCache, \Psr\Log\LoggerInterface $logger, string $constantName, string $declaringClassName, string $implementingClassName);

Parameters:

Name Type Description
$configuration \BumbleDocGen\Core\Configuration\Configuration -
$classEntity \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntity -
$parserHelper \BumbleDocGen\LanguageHandler\Php\Parser\ParserHelper -
$localObjectCache \BumbleDocGen\Core\Cache\LocalCache\LocalObjectCache -
$logger \Psr\Log\LoggerInterface -
$constantName string -
$declaringClassName string -
$implementingClassName string -

// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity

public function entityCacheIsOutdated(): bool;

Parameters: not specified

Return value: bool

Throws:


// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity

public function getAbsoluteFileName(): string|null;
Returns the absolute path to a file if it can be retrieved and if the file is in the project directory

Parameters: not specified

Return value: string | null

Throws:


// Implemented in BumbleDocGen\Core\Parser\Entity\Cache\CacheableEntityTrait

public function getCacheKey(): string;

Parameters: not specified

Return value: string


// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity

public function getCachedEntityDependencies(): array;

Parameters: not specified

Return value: array

Throws:



// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity

public function getDescriptionLinks(): array;
Get parsed links from description and doc blocks `see` and `link`

Parameters: not specified

Return value: array

Throws:



// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity

public function getDocComment(): string;
Get the doc comment of an entity

Parameters: not specified

Return value: string

Throws:


public function getDocCommentEntity(): \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ConstantEntity;

Parameters: not specified

Return value: \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ConstantEntity


// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity

public function getDocNote(): string;

Parameters: not specified

Return value: string



// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity

public function getExamples(): array;
Get parsed examples from `examples` doc block

Parameters: not specified

Return value: array



// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity

public function getFileSourceLink(bool $withLine = true): string|null;

Parameters:

Name Type Description
$withLine bool -

Return value: string | null

Throws:


// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity

public function getFirstExample(): string;
Get first example from @examples doc block

Parameters: not specified

Return value: string


public function getImplementingClass(): \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntity;

Parameters: not specified

Return value: \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntity


public function getImplementingClassName(): string;

Parameters: not specified

Return value: string


public function getImplementingReflectionClass(): \Roave\BetterReflection\Reflection\ReflectionClass;

Parameters: not specified

Return value: \Roave\BetterReflection\Reflection\ReflectionClass

Throws:


public function getName(): string;

Parameters: not specified

Return value: string



// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity

public function getObjectId(): string;
Get entity unique ID

Parameters: not specified

Return value: string


public function getPhpHandlerSettings(): \BumbleDocGen\LanguageHandler\Php\PhpHandlerSettings;

Parameters: not specified

Return value: \BumbleDocGen\LanguageHandler\Php\PhpHandlerSettings


public function getRootEntity(): \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntity;

Parameters: not specified

Return value: \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntity


public function getRootEntityCollection(): \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntityCollection;
Get parent collection of entities

Parameters: not specified

Return value: \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntityCollection


public function getShortName(): string;

Parameters: not specified

Return value: string



// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity

public function getThrows(): array;
Get parsed throws from `throws` doc block

Parameters: not specified

Return value: array

Throws:


// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity

public function hasDescriptionLinks(): bool;

Parameters: not specified

Return value: bool

Throws:


// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity

public function hasExamples(): bool;

Parameters: not specified

Return value: bool


// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity

public function hasThrows(): bool;

Parameters: not specified

Return value: bool


// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity

public function isDeprecated(): bool;

Parameters: not specified

Return value: bool


// Implemented in BumbleDocGen\Core\Parser\Entity\Cache\CacheableEntityTrait

public function isEntityDataCacheOutdated(): bool;

Parameters: not specified

Return value: bool

Throws:


// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity

public function isEntityFileCanBeLoad(): bool;

Parameters: not specified

Return value: bool

Throws:


// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity

public function isInternal(): bool;

Parameters: not specified

Return value: bool





// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity

public function reloadEntityDependenciesCache(): array;

Parameters: not specified

Return value: array

Throws:


// Implemented in BumbleDocGen\Core\Parser\Entity\Cache\CacheableEntityTrait

public function removeEntityValueFromCache(string $key): void;

Parameters:

Name Type Description
$key string -

Return value: void


// Implemented in BumbleDocGen\Core\Parser\Entity\Cache\CacheableEntityTrait

public function removeNotUsedEntityDataCache(): void;

Parameters: not specified

Return value: void

Throws: