BumbleDocGen / Technical description of the project / Class map / PhpHandler
PhpHandler class:
namespace BumbleDocGen\LanguageHandler\Php;
final class PhpHandler implements \BumbleDocGen\LanguageHandler\LanguageHandlerInterface
- getCustomTwigFilters
- getCustomTwigFunctions
- getEntityCollection
- getLanguageKey - Unique language handler key
- # __construct | source code
public function __construct(\BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntityCollection $classEntityCollection, \BumbleDocGen\LanguageHandler\Php\PhpHandlerSettings $phpHandlerSettings);
Parameters:
Name | Type | Description |
---|---|---|
$classEntityCollection | \BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntityCollection | - |
$phpHandlerSettings | \BumbleDocGen\LanguageHandler\Php\PhpHandlerSettings | - |
- # getCustomTwigFilters | source code
public function getCustomTwigFilters(\BumbleDocGen\Core\Renderer\Context\RendererContext $context): \BumbleDocGen\Core\Renderer\Twig\Filter\CustomFiltersCollection;
Parameters:
Name | Type | Description |
---|---|---|
$context | \BumbleDocGen\Core\Renderer\Context\RendererContext | - |
Return value: \BumbleDocGen\Core\Renderer\Twig\Filter\CustomFiltersCollection
Throws:
- # getCustomTwigFunctions | source code
public function getCustomTwigFunctions(\BumbleDocGen\Core\Renderer\Context\RendererContext $context): \BumbleDocGen\Core\Renderer\Twig\Function\CustomFunctionsCollection;
Parameters:
Name | Type | Description |
---|---|---|
$context | \BumbleDocGen\Core\Renderer\Context\RendererContext | - |
Return value: \BumbleDocGen\Core\Renderer\Twig\Function\CustomFunctionsCollection
Throws:
- # getEntityCollection | source code
public function getEntityCollection(): \BumbleDocGen\Core\Parser\Entity\RootEntityCollection;
Parameters: not specified
Return value: \BumbleDocGen\Core\Parser\Entity\RootEntityCollection
Throws:
- # getLanguageKey | source code
public static function getLanguageKey(): string;
Unique language handler key
Parameters: not specified
Return value: string