Skip to content

Latest commit

 

History

History
429 lines (308 loc) · 11.4 KB

File metadata and controls

429 lines (308 loc) · 11.4 KB

BumbleDocGen / Technical description of the project / Parser / Entities and entities collections / ConstantEntityCollection


namespace BumbleDocGen\LanguageHandler\Php\Parser\Entity;

final class ConstantEntityCollection extends \BumbleDocGen\Core\Parser\Entity\BaseEntityCollection implements \IteratorAggregate, \Traversable

Initialization methods:

  1. __construct

Methods:

  1. add
  2. get
  3. getIterator - Retrieve an external iterator
  4. has
  5. isEmpty
  6. loadConstantEntities
  7. remove
  8. unsafeGet

Method details:

public function __construct(\BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntity $classEntity, \BumbleDocGen\LanguageHandler\Php\PhpHandlerSettings $phpHandlerSettings, \BumbleDocGen\LanguageHandler\Php\Parser\Entity\Cache\CacheablePhpEntityFactory $cacheablePhpEntityFactory);

Parameters:

Name Type Description
$classEntity \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntity -
$phpHandlerSettings \BumbleDocGen\LanguageHandler\Php\PhpHandlerSettings -
$cacheablePhpEntityFactory \BumbleDocGen\LanguageHandler\Php\Parser\Entity\Cache\CacheablePhpEntityFactory -

public function add(\BumbleDocGen\LanguageHandler\Php\Parser\Entity\ConstantEntity $constantEntity, bool $reload = false): \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ConstantEntityCollection;

Parameters:

Name Type Description
$constantEntity \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ConstantEntity -
$reload bool -

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


public function get(string $objectName): \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ConstantEntity|null;

Parameters:

Name Type Description
$objectName string -

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


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

public function getIterator(): \Generator;
Retrieve an external iterator

Parameters: not specified

Return value: \Generator

Throws:

See:


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

public function has(string $objectName): bool;

Parameters:

Name Type Description
$objectName string -

Return value: bool


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

public function isEmpty(): bool;

Parameters: not specified

Return value: bool



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

public function remove(string $objectName): void;

Parameters:

Name Type Description
$objectName string -

Return value: void


public function unsafeGet(string $constantName): \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ConstantEntity|null;

Parameters:

Name Type Description
$constantName string -

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

Throws: