Skip to content

Latest commit

 

History

History
212 lines (140 loc) · 5.03 KB

GetClassMethodsBodyCode.md

File metadata and controls

212 lines (140 loc) · 5.03 KB

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


namespace BumbleDocGen\LanguageHandler\Php\Renderer\Twig\Function;

final class GetClassMethodsBodyCode implements \BumbleDocGen\Core\Renderer\Twig\Function\CustomFunctionInterface
Get the code of the specified class methods as a formatted string

Examples of using:

{{ getClassMethodsBodyCode('\\BumbleDocGen\\Renderer\\Twig\\MainExtension', ['getFunctions']) }}

Settings:

Function name: getClassMethodsBodyCode

Initialization methods:

  1. __construct

Methods:

  1. __invoke
  2. getName
  3. getOptions

Method details:

public function __construct(\BumbleDocGen\Core\Parser\Entity\RootEntityCollectionsGroup $rootEntityCollectionsGroup);

Parameters:

Name Type Description
$rootEntityCollectionsGroup \BumbleDocGen\Core\Parser\Entity\RootEntityCollectionsGroup -

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

Return value: string | null

Throws:


public static function getName(): string;

Parameters: not specified

Return value: string


public static function getOptions(): array;

Parameters: not specified

Return value: array