1 | <?php |
||
20 | class LazyPointcutAdvisor extends AbstractGenericPointcutAdvisor |
||
21 | { |
||
22 | |||
23 | /** |
||
24 | * Pointcut expression |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | private $pointcutExpression; |
||
29 | |||
30 | /** |
||
31 | * Instance of parsed pointcut |
||
32 | * |
||
33 | * @var Pointcut|null |
||
34 | */ |
||
35 | private $pointcut; |
||
36 | |||
37 | /** |
||
38 | * @var AspectContainer |
||
39 | */ |
||
40 | private $container; |
||
41 | |||
42 | /** |
||
43 | * Create a DefaultPointcutAdvisor, specifying Pointcut and Advice. |
||
44 | * |
||
45 | * @param AspectContainer $container Instance of container |
||
46 | * @param string $pointcutExpression The Pointcut targeting the Advice |
||
47 | * @param Advice $advice The Advice to run when Pointcut matches |
||
48 | */ |
||
49 | public function __construct(AspectContainer $container, $pointcutExpression, Advice $advice) |
||
55 | |||
56 | /** |
||
57 | * Get the Pointcut that drives this advisor. |
||
58 | * |
||
59 | * @return Pointcut The pointcut |
||
60 | */ |
||
61 | public function getPointcut() |
||
80 | } |
||
81 |