1 | <?php |
||
19 | class StaticInitializationJoinpoint extends AbstractJoinpoint |
||
20 | { |
||
21 | |||
22 | /** |
||
23 | * @var ReflectionClass |
||
24 | */ |
||
25 | protected $reflectionClass; |
||
26 | |||
27 | /** |
||
28 | * Constructor for static initialization joinpoint |
||
29 | * |
||
30 | * @param string $className Name of the class |
||
31 | * @param string $type Type of joinpoint |
||
32 | * @param $advices array List of advices for this invocation |
||
33 | * |
||
34 | * @internal param ReflectionClass $reflectionClass Reflection of class |
||
35 | */ |
||
36 | public function __construct($className, $type, array $advices) |
||
46 | |||
47 | /** |
||
48 | * Proceeds to the next interceptor in the chain. |
||
49 | * |
||
50 | * @return mixed see the children interfaces' proceed definition. |
||
51 | */ |
||
52 | public function proceed() |
||
59 | |||
60 | /** |
||
61 | * Invokes current joinpoint with all interceptors |
||
62 | * |
||
63 | * @return mixed |
||
64 | */ |
||
65 | final public function __invoke() |
||
71 | |||
72 | /** |
||
73 | * Returns the object that holds the current joinpoint's static |
||
74 | * part. |
||
75 | * |
||
76 | * @return object|null the object (can be null if the accessible object is |
||
77 | * static). |
||
78 | */ |
||
79 | public function getThis() |
||
83 | |||
84 | /** |
||
85 | * Returns the static part of this joinpoint. |
||
86 | * |
||
87 | * @return ReflectionClass |
||
88 | */ |
||
89 | public function getStaticPart() |
||
93 | |||
94 | /** |
||
95 | * Returns a friendly description of current joinpoint |
||
96 | * |
||
97 | * @return string |
||
98 | */ |
||
99 | final public function __toString() |
||
106 | } |
||
107 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.