PHP Class Go\Aop\Framework\BaseInterceptor

Inheritance: extends BaseAdvice, implements Go\Aop\Intercept\Interceptor, implements Serializabl\Serializable
Afficher le fichier Open project: goaop/framework Class Usage Examples

Protected Properties

Свойство Type Description
$adviceMethod Closure Advice to call
$pointcutExpression string Pointcut expression

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

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() public méthode

Getter for extracting the advice closure from Interceptor
public getRawAdvice ( ) : callable | null
Résultat callable | null

serialize() public méthode

Serializes an interceptor into string representation
public serialize ( ) : string
Résultat string the string representation of the object or null

unserialize() public méthode

Unserialize an interceptor from the string
public unserialize ( string $serialized ) : void
$serialized string The string representation of the object.
Résultat void

Property Details

$adviceMethod protected_oe property

Advice to call
protected Closure $adviceMethod
Résultat Closure

$pointcutExpression protected_oe property

Pointcut expression
protected string $pointcutExpression
Résultat string