1 | <?php |
||
19 | abstract class AbstractGenericPointcutAdvisor implements PointcutAdvisor |
||
20 | { |
||
21 | /** |
||
22 | * Instance of advice |
||
23 | * |
||
24 | * @var Advice |
||
25 | */ |
||
26 | protected $advice; |
||
27 | |||
28 | /** |
||
29 | * Initializes an advisor with advice |
||
30 | * |
||
31 | * @param Advice $advice Advice to apply |
||
32 | */ |
||
33 | 2 | public function __construct(Advice $advice) |
|
37 | |||
38 | /** |
||
39 | * Returns an advice to apply |
||
40 | * |
||
41 | * @return Advice|null |
||
42 | */ |
||
43 | 2 | public function getAdvice() |
|
47 | |||
48 | /** |
||
49 | * Return string representation of object |
||
50 | * |
||
51 | * @return string |
||
52 | */ |
||
53 | public function __toString() |
||
59 | } |
||
60 |