Skip to content

Latest commit

 

History

History
437 lines (316 loc) · 10.8 KB

RootEntityCollection.md

File metadata and controls

437 lines (316 loc) · 10.8 KB

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


namespace BumbleDocGen\Core\Parser\Entity;

abstract class RootEntityCollection extends \BumbleDocGen\Core\Parser\Entity\BaseEntityCollection implements \IteratorAggregate, \Traversable

Methods:

  1. findEntity
  2. get
  3. getEntityCollectionName
  4. getEntityLinkData
  5. getIterator - Retrieve an external iterator
  6. getLoadedOrCreateNew
  7. has
  8. isEmpty
  9. remove
  10. updateEntitiesCache

Method details:

public function findEntity(string $search, bool $useUnsafeKeys = true): \BumbleDocGen\Core\Parser\Entity\RootEntityInterface|null;

Parameters:

Name Type Description
$search string -
$useUnsafeKeys bool -

Return value: \BumbleDocGen\Core\Parser\Entity\RootEntityInterface | null


public function get(string $objectName): \BumbleDocGen\Core\Parser\Entity\RootEntityInterface|null;

Parameters:

Name Type Description
$objectName string -

Return value: \BumbleDocGen\Core\Parser\Entity\RootEntityInterface | null


public function getEntityCollectionName(): string;

Parameters: not specified

Return value: string


public function getEntityLinkData(string $rawLink, string|null $defaultEntityName = null, bool $useUnsafeKeys = true): array;

Parameters:

Name Type Description
$rawLink string Raw link to an entity or entity element
$defaultEntityName string | null Entity name to use if the link does not contain a valid or existing entity name, but only a cursor on an entity element
$useUnsafeKeys bool -

Return value: array


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

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

Parameters: not specified

Return value: \Generator

Throws:

See:


public function getLoadedOrCreateNew(string $objectName, bool $withAddClassEntityToCollectionEvent = false): \BumbleDocGen\Core\Parser\Entity\RootEntityInterface;

Parameters:

Name Type Description
$objectName string -
$withAddClassEntityToCollectionEvent bool -

Return value: \BumbleDocGen\Core\Parser\Entity\RootEntityInterface

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 updateEntitiesCache(): void;

Parameters: not specified

Return value: void

Throws: