PHP Class Go\Aop\Support\DeclareParentsAdvisor

Inheritance: implements Go\Aop\IntroductionAdvisor
显示文件 Open project: goaop/framework

Public Methods

Method Description
__construct ( Go\Aop\PointFilter $classFilter, Go\Aop\IntroductionInfo $info ) Create a DefaultIntroductionAdvisor for the given advice.
__toString ( ) : string Return string representation of object
getAdvice ( ) : Go\Aop\Advice | Go\Aop\IntroductionInfo | null Returns an advice to apply
getClassFilter ( ) : Go\Aop\PointFilter Return the filter determining which target classes this introduction should apply to.
setClassFilter ( Go\Aop\PointFilter $classFilter ) Set the class filter for advisor
validateInterfaces ( ) : void Can the advised interfaces be implemented by the introduction advice?

Method Details

__construct() public method

Create a DefaultIntroductionAdvisor for the given advice.
public __construct ( Go\Aop\PointFilter $classFilter, Go\Aop\IntroductionInfo $info )
$classFilter Go\Aop\PointFilter
$info Go\Aop\IntroductionInfo

__toString() public method

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

getAdvice() public method

Returns an advice to apply
public getAdvice ( ) : Go\Aop\Advice | Go\Aop\IntroductionInfo | null
return Go\Aop\Advice | Go\Aop\IntroductionInfo | null

getClassFilter() public method

This represents the class part of a pointcut. Note that method matching doesn't make sense to introductions.
public getClassFilter ( ) : Go\Aop\PointFilter
return Go\Aop\PointFilter The class filter

setClassFilter() public method

Set the class filter for advisor
public setClassFilter ( Go\Aop\PointFilter $classFilter )
$classFilter Go\Aop\PointFilter Filter for classes

validateInterfaces() public method

Invoked before adding an IntroductionAdvisor.
public validateInterfaces ( ) : void
return void