1 | <?php |
||
27 | trait ReflectionFunctionLikeTrait |
||
28 | { |
||
29 | use InitializationTrait; |
||
30 | |||
31 | /** |
||
32 | * @var FunctionLike |
||
33 | */ |
||
34 | protected $functionLikeNode; |
||
35 | |||
36 | /** |
||
37 | * Namespace name |
||
38 | * |
||
39 | * @var string |
||
40 | */ |
||
41 | protected $namespaceName = ''; |
||
42 | |||
43 | /** |
||
44 | * @var array|ReflectionParameter[] |
||
45 | */ |
||
46 | protected $parameters; |
||
47 | |||
48 | /** |
||
49 | * {@inheritDoc} |
||
50 | */ |
||
51 | 2 | public function getClosureScopeClass() |
|
52 | { |
||
53 | 2 | $this->initializeInternalReflection(); |
|
54 | |||
55 | 2 | return forward_static_call('parent::getClosureScopeClass'); |
|
56 | } |
||
57 | |||
58 | /** |
||
59 | * {@inheritDoc} |
||
60 | */ |
||
61 | 2 | public function getClosureThis() |
|
62 | { |
||
63 | 2 | $this->initializeInternalReflection(); |
|
64 | |||
65 | 2 | return forward_static_call('parent::getClosureThis'); |
|
66 | } |
||
67 | |||
68 | 2 | public function getDocComment() |
|
74 | |||
75 | 2 | public function getEndLine() |
|
79 | |||
80 | 2 | public function getExtension() |
|
84 | |||
85 | 2 | public function getExtensionName() |
|
89 | |||
90 | 8 | public function getFileName() |
|
94 | |||
95 | /** |
||
96 | * {@inheritDoc} |
||
97 | */ |
||
98 | 21 | public function getName() |
|
108 | |||
109 | /** |
||
110 | * {@inheritDoc} |
||
111 | */ |
||
112 | 8 | public function getNamespaceName() |
|
116 | |||
117 | /** |
||
118 | * Get the number of parameters that a function defines, both optional and required. |
||
119 | * |
||
120 | * @link http://php.net/manual/en/reflectionfunctionabstract.getnumberofparameters.php |
||
121 | * |
||
122 | * @return int |
||
123 | */ |
||
124 | 2 | public function getNumberOfParameters() |
|
128 | |||
129 | /** |
||
130 | * Get the number of required parameters that a function defines. |
||
131 | * |
||
132 | * @link http://php.net/manual/en/reflectionfunctionabstract.getnumberofrequiredparameters.php |
||
133 | * |
||
134 | * @return int |
||
135 | */ |
||
136 | 2 | public function getNumberOfRequiredParameters() |
|
147 | |||
148 | /** |
||
149 | * {@inheritDoc} |
||
150 | */ |
||
151 | 9 | public function getParameters() |
|
172 | |||
173 | /** |
||
174 | * {@inheritDoc} |
||
175 | */ |
||
176 | 2 | public function getShortName() |
|
184 | |||
185 | 2 | public function getStartLine() |
|
189 | |||
190 | /** |
||
191 | * {@inheritDoc} |
||
192 | */ |
||
193 | 2 | public function getStaticVariables() |
|
204 | |||
205 | /** |
||
206 | * {@inheritDoc} |
||
207 | */ |
||
208 | 2 | public function inNamespace() |
|
212 | |||
213 | /** |
||
214 | * {@inheritDoc} |
||
215 | */ |
||
216 | 1 | public function isClosure() |
|
220 | |||
221 | /** |
||
222 | * {@inheritDoc} |
||
223 | */ |
||
224 | 1 | public function isDeprecated() |
|
229 | |||
230 | /** |
||
231 | * {@inheritDoc} |
||
232 | */ |
||
233 | 1 | public function isGenerator() |
|
244 | |||
245 | /** |
||
246 | * {@inheritDoc} |
||
247 | */ |
||
248 | 1 | public function isInternal() |
|
253 | |||
254 | /** |
||
255 | * {@inheritDoc} |
||
256 | */ |
||
257 | 1 | public function isUserDefined() |
|
262 | |||
263 | /** |
||
264 | * {@inheritDoc} |
||
265 | */ |
||
266 | 1 | public function isVariadic() |
|
276 | |||
277 | /** |
||
278 | * {@inheritDoc} |
||
279 | */ |
||
280 | 2 | public function returnsReference() |
|
284 | } |