PHP 클래스 Go\Aop\Support\DefaultPointcutAdvisor

This is the most commonly used Advisor implementation. It can be used with any pointcut and advice type, except for introductions. There is normally no need to subclass this class, or to implement custom Advisors.
상속: extends AbstractGenericPointcutAdvisor
파일 보기 프로젝트 열기: goaop/framework

공개 메소드들

메소드 설명
__construct ( Go\Aop\Pointcut $pointcut, Go\Aop\Advice $advice ) Create a DefaultPointcutAdvisor, specifying Pointcut and Advice.
__toString ( ) : string Return string representation of object
getAdvice ( )
getPointcut ( ) : Go\Aop\Pointcut Get the Pointcut that drives this advisor.
setPointcut ( Go\Aop\Pointcut $pointcut ) Specify the pointcut targeting the advice.

메소드 상세

__construct() 공개 메소드

Create a DefaultPointcutAdvisor, specifying Pointcut and Advice.
public __construct ( Go\Aop\Pointcut $pointcut, Go\Aop\Advice $advice )
$pointcut Go\Aop\Pointcut The Pointcut targeting the Advice
$advice Go\Aop\Advice The Advice to run when Pointcut matches

__toString() 공개 메소드

Return string representation of object
public __toString ( ) : string
리턴 string

getAdvice() 공개 메소드

public getAdvice ( )

getPointcut() 공개 메소드

Get the Pointcut that drives this advisor.
public getPointcut ( ) : Go\Aop\Pointcut
리턴 Go\Aop\Pointcut The pointcut

setPointcut() 공개 메소드

Specify the pointcut targeting the advice.
public setPointcut ( Go\Aop\Pointcut $pointcut )
$pointcut Go\Aop\Pointcut The Pointcut targeting the Advice