BumbleDocGen / Technical description of the project / Class map / ConstantEntity
ConstantEntity class:
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
- entityCacheIsOutdated
- getAbsoluteFileName - Returns the absolute path to a file if it can be retrieved and if the file is in the project directory
- getCacheKey
- getCachedEntityDependencies
- getDescription
- getDescriptionLinks - Get parsed links from description and doc blocks `see` and `link`
- getDocBlock
- getDocComment - Get the doc comment of an entity
- getDocCommentEntity
- getDocNote
- getEndLine
- getExamples - Get parsed examples from `examples` doc block
- getFileName
- getFileSourceLink
- getFirstExample - Get first example from @examples doc block
- getImplementingClass
- getImplementingClassName
- getImplementingReflectionClass
- getName
- getNamespaceName
- getObjectId - Get entity unique ID
- getPhpHandlerSettings
- getRootEntity
- getRootEntityCollection - Get parent collection of entities
- getShortName
- getStartLine
- getThrows - Get parsed throws from `throws` doc block
- hasDescriptionLinks
- hasExamples
- hasThrows
- isDeprecated
- isEntityDataCacheOutdated
- isEntityFileCanBeLoad
- isInternal
- isPrivate
- isProtected
- isPublic
- reloadEntityDependenciesCache
- removeEntityValueFromCache
- removeNotUsedEntityDataCache
- # __construct | source code
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 | - |
- # entityCacheIsOutdated | source code
// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity
public function entityCacheIsOutdated(): bool;
Parameters: not specified
Return value: bool
Throws:
- # getAbsoluteFileName | source code
// 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
Throws:
- # getCacheKey | source code
// Implemented in BumbleDocGen\Core\Parser\Entity\Cache\CacheableEntityTrait
public function getCacheKey(): string;
Parameters: not specified
Return value: string
- # getCachedEntityDependencies | source code
// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity
public function getCachedEntityDependencies(): array;
Parameters: not specified
Return value: array
Throws:
- # getDescription | source code
public function getDescription(): string;
Parameters: not specified
Return value: string
Throws:
- # getDescriptionLinks | source code
// 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:
- # getDocBlock | source code
public function getDocBlock(): \phpDocumentor\Reflection\DocBlock;
Parameters: not specified
Return value: \phpDocumentor\Reflection\DocBlock
Throws:
- # getDocComment | source code
// 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:
- # getDocCommentEntity | source code
public function getDocCommentEntity(): \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ConstantEntity;
Parameters: not specified
Return value: \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ConstantEntity
- # getDocNote | source code
// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity
public function getDocNote(): string;
Parameters: not specified
Return value: string
- # getEndLine | source code
public function getEndLine(): int;
Parameters: not specified
Return value: int
Throws:
- # getExamples | source code
// 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
- # getFileName | source code
public function getFileName(): string|null;
Parameters: not specified
Throws:
- # getFileSourceLink | source code
// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity
public function getFileSourceLink(bool $withLine = true): string|null;
Parameters:
Name | Type | Description |
---|---|---|
$withLine | bool | - |
Throws:
- # getFirstExample | source code
// 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
- # getImplementingClass | source code
public function getImplementingClass(): \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntity;
Parameters: not specified
Return value: \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntity
- # getImplementingClassName | source code
public function getImplementingClassName(): string;
Parameters: not specified
Return value: string
- # getImplementingReflectionClass | source code
public function getImplementingReflectionClass(): \Roave\BetterReflection\Reflection\ReflectionClass;
Parameters: not specified
Return value: \Roave\BetterReflection\Reflection\ReflectionClass
Throws:
- # getName | source code
public function getName(): string;
Parameters: not specified
Return value: string
- # getNamespaceName | source code
public function getNamespaceName(): string;
Parameters: not specified
Return value: string
Throws:
- # getObjectId | source code
// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity
public function getObjectId(): string;
Get entity unique ID
Parameters: not specified
Return value: string
- # getPhpHandlerSettings | source code
public function getPhpHandlerSettings(): \BumbleDocGen\LanguageHandler\Php\PhpHandlerSettings;
Parameters: not specified
Return value: \BumbleDocGen\LanguageHandler\Php\PhpHandlerSettings
- # getRootEntity | source code
public function getRootEntity(): \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntity;
Parameters: not specified
Return value: \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntity
- # getRootEntityCollection | source code
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
- # getShortName | source code
public function getShortName(): string;
Parameters: not specified
Return value: string
- # getStartLine | source code
public function getStartLine(): int;
Parameters: not specified
Return value: int
Throws:
- # getThrows | source code
// 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:
- # hasDescriptionLinks | source code
// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity
public function hasDescriptionLinks(): bool;
Parameters: not specified
Return value: bool
Throws:
- # hasExamples | source code
// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity
public function hasExamples(): bool;
Parameters: not specified
Return value: bool
- # hasThrows | source code
// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity
public function hasThrows(): bool;
Parameters: not specified
Return value: bool
- # isDeprecated | source code
// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity
public function isDeprecated(): bool;
Parameters: not specified
Return value: bool
- # isEntityDataCacheOutdated | source code
// Implemented in BumbleDocGen\Core\Parser\Entity\Cache\CacheableEntityTrait
public function isEntityDataCacheOutdated(): bool;
Parameters: not specified
Return value: bool
Throws:
- # isEntityFileCanBeLoad | source code
// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity
public function isEntityFileCanBeLoad(): bool;
Parameters: not specified
Return value: bool
Throws:
- # isInternal | source code
// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity
public function isInternal(): bool;
Parameters: not specified
Return value: bool
- # isPrivate | source code
public function isPrivate(): bool;
Parameters: not specified
Return value: bool
Throws:
- # isProtected | source code
public function isProtected(): bool;
Parameters: not specified
Return value: bool
Throws:
- # isPublic | source code
public function isPublic(): bool;
Parameters: not specified
Return value: bool
Throws:
- # reloadEntityDependenciesCache | source code
// Implemented in BumbleDocGen\LanguageHandler\Php\Parser\Entity\BaseEntity
public function reloadEntityDependenciesCache(): array;
Parameters: not specified
Return value: array
Throws:
- # removeEntityValueFromCache | source code
// Implemented in BumbleDocGen\Core\Parser\Entity\Cache\CacheableEntityTrait
public function removeEntityValueFromCache(string $key): void;
Parameters:
Name | Type | Description |
---|---|---|
$key | string | - |
Return value: void
- # removeNotUsedEntityDataCache | source code
// Implemented in BumbleDocGen\Core\Parser\Entity\Cache\CacheableEntityTrait
public function removeNotUsedEntityDataCache(): void;
Parameters: not specified
Return value: void
Throws: