PHP 클래스 Go\Aop\Framework\BaseInterceptor

상속: extends BaseAdvice, implements Go\Aop\Intercept\Interceptor, implements Serializabl\Serializable
파일 보기 프로젝트 열기: goaop/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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