PHP Класс Go\Aop\Framework\BaseInterceptor

Наследование: extends BaseAdvice, implements Go\Aop\Intercept\Interceptor, implements Serializabl\Serializable
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$adviceMethod Closure Advice to call
$pointcutExpression string Pointcut expression

Открытые методы

Метод Описание
__construct ( Closure $adviceMethod, integer $order, string $pointcutExpression = '' ) Default constructor for interceptor
getRawAdvice ( ) : callable | null Getter for extracting the advice closure from Interceptor
serialize ( ) : string Serializes an interceptor into string representation
unserialize ( string $serialized ) : void Unserialize an interceptor from the string

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

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

Default constructor for interceptor
public __construct ( Closure $adviceMethod, integer $order, string $pointcutExpression = '' )
$adviceMethod Closure Interceptor advice to call
$order integer Order of interceptor
$pointcutExpression string Pointcut expression or advice name

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

Getter for extracting the advice closure from Interceptor
public getRawAdvice ( ) : callable | null
Результат callable | null

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

Serializes an interceptor into string representation
public serialize ( ) : string
Результат string the string representation of the object or null

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

Unserialize an interceptor from the string
public unserialize ( string $serialized ) : void
$serialized string The string representation of the object.
Результат void

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

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

Advice to call
protected Closure $adviceMethod
Результат Closure

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

Pointcut expression
protected string $pointcutExpression
Результат string