PHP Class 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.
Inheritance: extends AbstractGenericPointcutAdvisor
Datei anzeigen Open project: goaop/framework

Public Methods

Method Description
__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.

Method Details

__construct() public method

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() public method

Return string representation of object
public __toString ( ) : string
return string

getAdvice() public method

public getAdvice ( )

getPointcut() public method

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

setPointcut() public method

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