PHP Class Go\Aop\Framework\BaseInterceptor

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

Protected Properties

Property Type Description
$adviceMethod Closure Advice to call
$pointcutExpression string Pointcut expression

Public Methods

Method 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 method

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 method

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

serialize() public method

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

unserialize() public method

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

Property Details

$adviceMethod protected_oe property

Advice to call
protected Closure $adviceMethod
return Closure

$pointcutExpression protected_oe property

Pointcut expression
protected string $pointcutExpression
return string