BumbleDocGen / Technical description of the project / Parser / Entities and entities collections / MethodEntityCollection
MethodEntityCollection class:
namespace BumbleDocGen\LanguageHandler\Php\Parser\Entity;
final class MethodEntityCollection extends \BumbleDocGen\Core\Parser\Entity\BaseEntityCollection implements \IteratorAggregate, \Traversable- add
- get
- getAllExceptInitializations
- getInitializations
- getIterator - Retrieve an external iterator
- has
- isEmpty
- loadMethodEntities
- remove
- unsafeGet
- # __construct | source code
public function __construct(\BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntity $classEntity, \BumbleDocGen\LanguageHandler\Php\PhpHandlerSettings $phpHandlerSettings, \BumbleDocGen\LanguageHandler\Php\Parser\Entity\Cache\CacheablePhpEntityFactory $cacheablePhpEntityFactory, \Psr\Log\LoggerInterface $logger);Parameters:
| Name | Type | Description |
|---|---|---|
| $classEntity | \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntity | - |
| $phpHandlerSettings | \BumbleDocGen\LanguageHandler\Php\PhpHandlerSettings | - |
| $cacheablePhpEntityFactory | \BumbleDocGen\LanguageHandler\Php\Parser\Entity\Cache\CacheablePhpEntityFactory | - |
| $logger | \Psr\Log\LoggerInterface | - |
- # add | source code
public function add(\BumbleDocGen\LanguageHandler\Php\Parser\Entity\MethodEntityInterface $methodEntity, bool $reload = false): \BumbleDocGen\LanguageHandler\Php\Parser\Entity\MethodEntityCollection;Parameters:
| Name | Type | Description |
|---|---|---|
| $methodEntity | \BumbleDocGen\LanguageHandler\Php\Parser\Entity\MethodEntityInterface | - |
| $reload | bool | - |
Return value: \BumbleDocGen\LanguageHandler\Php\Parser\Entity\MethodEntityCollection
- # get | source code
public function get(string $objectName): \BumbleDocGen\LanguageHandler\Php\Parser\Entity\MethodEntity|null;Parameters:
| Name | Type | Description |
|---|---|---|
| $objectName | string | - |
Return value: \BumbleDocGen\LanguageHandler\Php\Parser\Entity\MethodEntity | null
- # getAllExceptInitializations | source code
public function getAllExceptInitializations(): \BumbleDocGen\LanguageHandler\Php\Parser\Entity\MethodEntityCollection;Parameters: not specified
Return value: \BumbleDocGen\LanguageHandler\Php\Parser\Entity\MethodEntityCollection
- # getInitializations | source code
public function getInitializations(): \BumbleDocGen\LanguageHandler\Php\Parser\Entity\MethodEntityCollection;Parameters: not specified
Return value: \BumbleDocGen\LanguageHandler\Php\Parser\Entity\MethodEntityCollection
- # getIterator | source code
// Implemented in BumbleDocGen\Core\Parser\Entity\BaseEntityCollection
public function getIterator(): \Generator;Retrieve an external iterator
Parameters: not specified
Return value: \Generator
Throws:
- \Exception - on failure.
See:
- # has | source code
// Implemented in BumbleDocGen\Core\Parser\Entity\BaseEntityCollection
public function has(string $objectName): bool;Parameters:
| Name | Type | Description |
|---|---|---|
| $objectName | string | - |
Return value: bool
- # isEmpty | source code
// Implemented in BumbleDocGen\Core\Parser\Entity\BaseEntityCollection
public function isEmpty(): bool;Parameters: not specified
Return value: bool
- # loadMethodEntities | source code
public function loadMethodEntities(): void;Parameters: not specified
Return value: void
Throws:
- # remove | source code
// Implemented in BumbleDocGen\Core\Parser\Entity\BaseEntityCollection
public function remove(string $objectName): void;Parameters:
| Name | Type | Description |
|---|---|---|
| $objectName | string | - |
Return value: void
- # unsafeGet | source code
public function unsafeGet(string $objectName): \BumbleDocGen\LanguageHandler\Php\Parser\Entity\MethodEntity|null;Parameters:
| Name | Type | Description |
|---|---|---|
| $objectName | string | - |
Return value: \BumbleDocGen\LanguageHandler\Php\Parser\Entity\MethodEntity | null
Throws: