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
Afficher le fichier Open project: goaop/framework

Méthodes publiques

Méthode 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 méthode

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 méthode

Return string representation of object
public __toString ( ) : string
Résultat string

getAdvice() public méthode

public getAdvice ( )

getPointcut() public méthode

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

setPointcut() public méthode

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