1 | <?php |
||
35 | class WeavePointcut extends AbstractSignaturePointcut |
||
36 | { |
||
37 | |||
38 | /** |
||
39 | * Whether or not the pointcut is considered static, meaning is has to be weaved and evaluated during runtime |
||
40 | * anyway |
||
41 | * |
||
42 | * @var boolean IS_STATIC |
||
43 | */ |
||
44 | const IS_STATIC = true; |
||
45 | |||
46 | /** |
||
47 | * The type of this pointcut |
||
48 | * |
||
49 | * @var string TYPE |
||
50 | */ |
||
51 | const TYPE = 'weave'; |
||
52 | |||
53 | /** |
||
54 | * Returns a string representing a boolean condition which can be used to determine if |
||
55 | * the pointcut has to be executed |
||
56 | * |
||
57 | * @return string |
||
58 | */ |
||
59 | public function getConditionString() |
||
63 | |||
64 | /** |
||
65 | * Returns a string representing the actual execution of the pointcut logic |
||
66 | * |
||
67 | * @param string|null $assignTo Should the result be assigned and stored for later use? If so, to what? |
||
68 | * |
||
69 | * @return string |
||
70 | */ |
||
71 | public function getExecutionString($assignTo = null) |
||
97 | |||
98 | /** |
||
99 | * Whether or not the pointcut matches a given candidate. |
||
100 | * Weave pointcuts will always return true, as they do not pose any condition |
||
101 | * |
||
102 | * @param mixed $candidate Candidate to match against the pointcuts match pattern (getMatchPattern()) |
||
103 | * |
||
104 | * @return boolean |
||
105 | */ |
||
106 | public function matches($candidate) |
||
110 | } |
||
111 |