Skip to content

Latest commit

 

History

History
958 lines (647 loc) · 25.7 KB

BaseEntity.md

File metadata and controls

958 lines (647 loc) · 25.7 KB

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


BaseEntity class:

namespace BumbleDocGen\LanguageHandler\Php\Parser\Entity;

abstract class BaseEntity implements \BumbleDocGen\Core\Parser\Entity\Cache\CacheableEntityInterface, \BumbleDocGen\Core\Parser\Entity\EntityInterface

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. getExamples - Get parsed examples from `examples` doc block
  12. getFileName - Returns the relative path to a file if it can be retrieved and if the file is in the project directory
  13. getFileSourceLink
  14. getFirstExample - Get first example from @examples doc block
  15. getImplementingReflectionClass
  16. getName
  17. getObjectId - Get entity unique ID
  18. getPhpHandlerSettings
  19. getRootEntityCollection - Get parent collection of entities
  20. getShortName
  21. getStartLine
  22. getThrows - Get parsed throws from `throws` doc block
  23. hasDescriptionLinks
  24. hasExamples
  25. hasThrows
  26. isDeprecated
  27. isEntityDataCacheOutdated
  28. isEntityFileCanBeLoad
  29. isInternal
  30. reloadEntityDependenciesCache
  31. removeEntityValueFromCache
  32. removeNotUsedEntityDataCache

Traits:

Method details:

public function entityCacheIsOutdated(): bool;

Parameters: not specified

Return value: bool

Throws:


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


public function getCachedEntityDependencies(): array;

Parameters: not specified

Return value: array

Throws:


public function getDescription(): string;

Parameters: not specified

Return value: string


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

Parameters: not specified

Return value: array

Throws:


public function getDocBlock(): \phpDocumentor\Reflection\DocBlock;

Parameters: not specified

Return value: \phpDocumentor\Reflection\DocBlock


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\ClassEntity|\BumbleDocGen\LanguageHandler\Php\Parser\Entity\MethodEntity|\BumbleDocGen\LanguageHandler\Php\Parser\Entity\PropertyEntity|\BumbleDocGen\LanguageHandler\Php\Parser\Entity\ConstantEntity;

Parameters: not specified

Return value: \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntity | \BumbleDocGen\LanguageHandler\Php\Parser\Entity\MethodEntity | \BumbleDocGen\LanguageHandler\Php\Parser\Entity\PropertyEntity | \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ConstantEntity


public function getDocNote(): string;

Parameters: not specified

Return value: string


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

Parameters: not specified

Return value: array


public function getFileName(): string|null;
Returns the relative 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


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

Parameters:

Name Type Description
$withLine bool -

Return value: string | null

Throws:


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

Parameters: not specified

Return value: string


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

Parameters: not specified

Return value: \Roave\BetterReflection\Reflection\ReflectionClass


// Implemented in BumbleDocGen\Core\Parser\Entity\EntityInterface

public function getName(): string;

Parameters: not specified

Return value: string


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 getRootEntityCollection(): \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntityCollection;
Get parent collection of entities

Parameters: not specified

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


// Implemented in BumbleDocGen\Core\Parser\Entity\EntityInterface

public function getShortName(): string;

Parameters: not specified

Return value: string


public function getStartLine(): int;

Parameters: not specified

Return value: int


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

Parameters: not specified

Return value: array

Throws:


public function hasDescriptionLinks(): bool;

Parameters: not specified

Return value: bool

Throws:


public function hasExamples(): bool;

Parameters: not specified

Return value: bool


public function hasThrows(): bool;

Parameters: not specified

Return value: bool


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:


public function isEntityFileCanBeLoad(): bool;

Parameters: not specified

Return value: bool

Throws:


public function isInternal(): bool;

Parameters: not specified

Return value: bool


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: