for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
/*
* Go! AOP framework
*
* @copyright Copyright 2012, Lisachenko Alexander <[email protected]>
* This source file is subject to the license that is bundled
* with this source code in the file LICENSE.
*/
namespace Go\Aop\Support;
use Go\Aop\Advice;
use Go\Aop\Advisor;
/**
* Abstract generic PointcutAdvisor that allows for any Advice to be configured.
abstract class AbstractGenericAdvisor implements Advisor
{
* Instance of advice
* @var Advice
protected $advice;
* Initializes an advisor with advice
* @param Advice $advice Advice to apply
public function __construct(Advice $advice)
$this->advice = $advice;
}
* Returns an advice to apply
public function getAdvice(): Advice
return $this->advice;