Свойство | Тип | Описание | |
---|---|---|---|
$functionAdvices | array | List of advices for functions | |
$functionsCode | Source code for functions | ||
$namespace | string | Name for the current namespace |
Метод | Описание | |
---|---|---|
__construct ( Go\ParserReflection\ReflectionFileNamespace $namespace, array $advices = [] ) | Constructs functions stub class from namespace Reflection | |
__toString ( ) | {@inheritDoc} | |
getJoinPoint ( string $joinPointName, string $namespace ) : Go\Aop\Intercept\FunctionInvocation | Returns a joinpoint for specific function in the namespace | |
injectJoinPoints ( string $namespace, array $advices = [] ) : void | Inject advices for given trait | |
override ( ReflectionFunction $function, string $body ) | Override function with new body |
Метод | Описание | |
---|---|---|
getJoinpointInvocationBody ( ReflectionFunction $function ) : string | Creates definition for trait method body |
public __construct ( Go\ParserReflection\ReflectionFileNamespace $namespace, array $advices = [] ) | ||
$namespace | Go\ParserReflection\ReflectionFileNamespace | Reflection of namespace |
$advices | array | List of function advices |
public static getJoinPoint ( string $joinPointName, string $namespace ) : Go\Aop\Intercept\FunctionInvocation | ||
$joinPointName | string | Special joinpoint name |
$namespace | string | Name of the namespace |
Результат | Go\Aop\Intercept\FunctionInvocation |
protected getJoinpointInvocationBody ( ReflectionFunction $function ) : string | ||
$function | ReflectionFunction | Method reflection |
Результат | string | new method body |
protected static array $functionAdvices | ||
Результат | array |
protected string $namespace | ||
Результат | string |