1 | <?php |
||
37 | class AdvisePointcut extends AbstractSignaturePointcut |
||
38 | { |
||
39 | |||
40 | /** |
||
41 | * Whether or not the pointcut is considered static, meaning is has to be weaved and evaluated during runtime |
||
42 | * anyway |
||
43 | * |
||
44 | * @var boolean IS_STATIC |
||
45 | */ |
||
46 | const IS_STATIC = true; |
||
47 | |||
48 | /** |
||
49 | * The type of this pointcut |
||
50 | * |
||
51 | * @var string TYPE |
||
52 | */ |
||
53 | const TYPE = 'advise'; |
||
54 | |||
55 | /** |
||
56 | * Default constructor |
||
57 | * |
||
58 | * @param string $expression String representing the expression defining this pointcut |
||
59 | * @param boolean $isNegated If any match made against this pointcut's expression has to be negated in its result |
||
60 | */ |
||
61 | public function __construct($expression, $isNegated = false) |
||
66 | |||
67 | /** |
||
68 | * Returns a string representing a boolean condition which can be used to determine if |
||
69 | * the pointcut has to be executed |
||
70 | * |
||
71 | * @return string |
||
72 | */ |
||
73 | public function getConditionString() |
||
77 | |||
78 | /** |
||
79 | * Returns a string representing the actual execution of the pointcut logic |
||
80 | * |
||
81 | * @param string|null $assignTo Should the result be assigned and stored for later use? If so, to what? |
||
82 | * |
||
83 | * @return string |
||
84 | */ |
||
85 | public function getExecutionString($assignTo = null) |
||
112 | |||
113 | /** |
||
114 | * Whether or not the pointcut matches a given candidate. |
||
115 | * Will always return true, as we do not support regex here right now |
||
116 | * |
||
117 | * @param mixed $candidate Candidate to match against the pointcuts match pattern (getMatchPattern()) |
||
118 | * |
||
119 | * @return boolean |
||
120 | */ |
||
121 | public function matches($candidate) |
||
125 | } |
||
126 |