Go\Aop\Support\AbstractGenericPointcutAdvisor::__construct PHP 메소드

__construct() 공개 메소드

Initializes an advisor with advice
public __construct ( Go\Aop\Advice $advice )
$advice Go\Aop\Advice Advice to apply
    public function __construct(Advice $advice)
    {
        $this->advice = $advice;
    }

Usage Example

예제 #1
0
 /**
  * Create a DefaultPointcutAdvisor, specifying Pointcut and Advice.
  *
  * @param Pointcut $pointcut The Pointcut targeting the Advice
  * @param Advice $advice The Advice to run when Pointcut matches
  */
 public function __construct(Pointcut $pointcut, Advice $advice)
 {
     $this->pointcut = $pointcut;
     parent::__construct($advice);
 }
All Usage Examples Of Go\Aop\Support\AbstractGenericPointcutAdvisor::__construct
AbstractGenericPointcutAdvisor