BumbleDocGen / Technical description of the project / Renderer / Template functions / GetClassMethodsBodyCode
GetClassMethodsBodyCode class:
namespace BumbleDocGen\LanguageHandler\Php\Renderer\Twig\Function;
final class GetClassMethodsBodyCode implements \BumbleDocGen\Core\Renderer\Twig\Function\CustomFunctionInterfaceGet the code of the specified class methods as a formatted string
Examples of using:
{{ getClassMethodsBodyCode('\\BumbleDocGen\\Renderer\\Twig\\MainExtension', ['getFunctions']) }}| Function name: | getClassMethodsBodyCode |
- # __construct | source code
public function __construct(\BumbleDocGen\Core\Parser\Entity\RootEntityCollectionsGroup $rootEntityCollectionsGroup);Parameters:
| Name | Type | Description |
|---|---|---|
| $rootEntityCollectionsGroup | \BumbleDocGen\Core\Parser\Entity\RootEntityCollectionsGroup | - |
- # __invoke | source code
public function __invoke(string $className, array $methodsNames): string|null;Parameters:
| Name | Type | Description |
|---|---|---|
| $className | string | The name of the class whose methods are to be retrieved |
| $methodsNames | array | List of class methods whose code needs to be retrieved |
Throws:
- # getName | source code
public static function getName(): string;Parameters: not specified
Return value: string
- # getOptions | source code
public static function getOptions(): array;Parameters: not specified
Return value: array