PHP Класс Go\Proxy\FunctionProxy

Наследование: extends AbstractProxy
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Описание методов

__construct() публичный Метод

Constructs functions stub class from namespace Reflection
public __construct ( Go\ParserReflection\ReflectionFileNamespace $namespace, array $advices = [] )
$namespace Go\ParserReflection\ReflectionFileNamespace Reflection of namespace
$advices array List of function advices

__toString() публичный Метод

{@inheritDoc}
public __toString ( )

getJoinPoint() публичный статический Метод

Returns a joinpoint for specific function in the namespace
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

getJoinpointInvocationBody() защищенный Метод

Creates definition for trait method body
protected getJoinpointInvocationBody ( ReflectionFunction $function ) : string
$function ReflectionFunction Method reflection
Результат string new method body

injectJoinPoints() публичный статический Метод

NB This method will be used as a callback during source code evaluation to inject joinpoints
public static injectJoinPoints ( string $namespace, array $advices = [] ) : void
$namespace string Aop child proxy class
$advices array List of advices to inject into class
Результат void

override() публичный Метод

Override function with new body
public override ( ReflectionFunction $function, string $body )
$function ReflectionFunction Function reflection
$body string New body for function

Описание свойств

$functionAdvices защищенное статическое свойство

List of advices for functions
protected static array $functionAdvices
Результат array

$functionsCode защищенное свойство

Source code for functions
protected $functionsCode

$namespace защищенное свойство

Name for the current namespace
protected string $namespace
Результат string