Chris@0
|
1 <?php
|
Chris@0
|
2 /*
|
Chris@0
|
3 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
Chris@0
|
4 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
Chris@0
|
5 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
Chris@0
|
6 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
Chris@0
|
7 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
Chris@0
|
8 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
Chris@0
|
9 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
Chris@0
|
10 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
Chris@0
|
11 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
Chris@0
|
12 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
Chris@0
|
13 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
Chris@0
|
14 *
|
Chris@0
|
15 * This software consists of voluntary contributions made by many individuals
|
Chris@0
|
16 * and is licensed under the MIT license. For more information, see
|
Chris@0
|
17 * <http://www.doctrine-project.org>.
|
Chris@0
|
18 */
|
Chris@0
|
19
|
Chris@0
|
20 namespace Doctrine\Common\Reflection;
|
Chris@0
|
21
|
Chris@0
|
22 use ReflectionClass;
|
Chris@0
|
23 use ReflectionException;
|
Chris@0
|
24
|
Chris@0
|
25 class StaticReflectionClass extends ReflectionClass
|
Chris@0
|
26 {
|
Chris@0
|
27 /**
|
Chris@0
|
28 * The static reflection parser object.
|
Chris@0
|
29 *
|
Chris@0
|
30 * @var StaticReflectionParser
|
Chris@0
|
31 */
|
Chris@0
|
32 private $staticReflectionParser;
|
Chris@0
|
33
|
Chris@0
|
34 /**
|
Chris@0
|
35 * @param StaticReflectionParser $staticReflectionParser
|
Chris@0
|
36 */
|
Chris@0
|
37 public function __construct(StaticReflectionParser $staticReflectionParser)
|
Chris@0
|
38 {
|
Chris@0
|
39 $this->staticReflectionParser = $staticReflectionParser;
|
Chris@0
|
40 }
|
Chris@0
|
41
|
Chris@0
|
42 /**
|
Chris@0
|
43 * {@inheritDoc}
|
Chris@0
|
44 */
|
Chris@0
|
45 public function getName()
|
Chris@0
|
46 {
|
Chris@0
|
47 return $this->staticReflectionParser->getClassName();
|
Chris@0
|
48 }
|
Chris@0
|
49
|
Chris@0
|
50 /**
|
Chris@0
|
51 * {@inheritDoc}
|
Chris@0
|
52 */
|
Chris@0
|
53 public function getDocComment()
|
Chris@0
|
54 {
|
Chris@0
|
55 return $this->staticReflectionParser->getDocComment();
|
Chris@0
|
56 }
|
Chris@0
|
57
|
Chris@0
|
58 /**
|
Chris@0
|
59 * {@inheritDoc}
|
Chris@0
|
60 */
|
Chris@0
|
61 public function getNamespaceName()
|
Chris@0
|
62 {
|
Chris@0
|
63 return $this->staticReflectionParser->getNamespaceName();
|
Chris@0
|
64 }
|
Chris@0
|
65
|
Chris@0
|
66 /**
|
Chris@0
|
67 * @return array
|
Chris@0
|
68 */
|
Chris@0
|
69 public function getUseStatements()
|
Chris@0
|
70 {
|
Chris@0
|
71 return $this->staticReflectionParser->getUseStatements();
|
Chris@0
|
72 }
|
Chris@0
|
73
|
Chris@0
|
74 /**
|
Chris@0
|
75 * {@inheritDoc}
|
Chris@0
|
76 */
|
Chris@0
|
77 public function getMethod($name)
|
Chris@0
|
78 {
|
Chris@0
|
79 return $this->staticReflectionParser->getReflectionMethod($name);
|
Chris@0
|
80 }
|
Chris@0
|
81
|
Chris@0
|
82 /**
|
Chris@0
|
83 * {@inheritDoc}
|
Chris@0
|
84 */
|
Chris@0
|
85 public function getProperty($name)
|
Chris@0
|
86 {
|
Chris@0
|
87 return $this->staticReflectionParser->getReflectionProperty($name);
|
Chris@0
|
88 }
|
Chris@0
|
89
|
Chris@0
|
90 /**
|
Chris@0
|
91 * {@inheritDoc}
|
Chris@0
|
92 */
|
Chris@0
|
93 public static function export($argument, $return = false)
|
Chris@0
|
94 {
|
Chris@0
|
95 throw new ReflectionException('Method not implemented');
|
Chris@0
|
96 }
|
Chris@0
|
97
|
Chris@0
|
98 /**
|
Chris@0
|
99 * {@inheritDoc}
|
Chris@0
|
100 */
|
Chris@0
|
101 public function getConstant($name)
|
Chris@0
|
102 {
|
Chris@0
|
103 throw new ReflectionException('Method not implemented');
|
Chris@0
|
104 }
|
Chris@0
|
105
|
Chris@0
|
106 /**
|
Chris@0
|
107 * {@inheritDoc}
|
Chris@0
|
108 */
|
Chris@0
|
109 public function getConstants()
|
Chris@0
|
110 {
|
Chris@0
|
111 throw new ReflectionException('Method not implemented');
|
Chris@0
|
112 }
|
Chris@0
|
113
|
Chris@0
|
114 /**
|
Chris@0
|
115 * {@inheritDoc}
|
Chris@0
|
116 */
|
Chris@0
|
117 public function getConstructor()
|
Chris@0
|
118 {
|
Chris@0
|
119 throw new ReflectionException('Method not implemented');
|
Chris@0
|
120 }
|
Chris@0
|
121
|
Chris@0
|
122 /**
|
Chris@0
|
123 * {@inheritDoc}
|
Chris@0
|
124 */
|
Chris@0
|
125 public function getDefaultProperties()
|
Chris@0
|
126 {
|
Chris@0
|
127 throw new ReflectionException('Method not implemented');
|
Chris@0
|
128 }
|
Chris@0
|
129
|
Chris@0
|
130 /**
|
Chris@0
|
131 * {@inheritDoc}
|
Chris@0
|
132 */
|
Chris@0
|
133 public function getEndLine()
|
Chris@0
|
134 {
|
Chris@0
|
135 throw new ReflectionException('Method not implemented');
|
Chris@0
|
136 }
|
Chris@0
|
137
|
Chris@0
|
138 /**
|
Chris@0
|
139 * {@inheritDoc}
|
Chris@0
|
140 */
|
Chris@0
|
141 public function getExtension()
|
Chris@0
|
142 {
|
Chris@0
|
143 throw new ReflectionException('Method not implemented');
|
Chris@0
|
144 }
|
Chris@0
|
145
|
Chris@0
|
146 /**
|
Chris@0
|
147 * {@inheritDoc}
|
Chris@0
|
148 */
|
Chris@0
|
149 public function getExtensionName()
|
Chris@0
|
150 {
|
Chris@0
|
151 throw new ReflectionException('Method not implemented');
|
Chris@0
|
152 }
|
Chris@0
|
153
|
Chris@0
|
154 /**
|
Chris@0
|
155 * {@inheritDoc}
|
Chris@0
|
156 */
|
Chris@0
|
157 public function getFileName()
|
Chris@0
|
158 {
|
Chris@0
|
159 throw new ReflectionException('Method not implemented');
|
Chris@0
|
160 }
|
Chris@0
|
161
|
Chris@0
|
162 /**
|
Chris@0
|
163 * {@inheritDoc}
|
Chris@0
|
164 */
|
Chris@0
|
165 public function getInterfaceNames()
|
Chris@0
|
166 {
|
Chris@0
|
167 throw new ReflectionException('Method not implemented');
|
Chris@0
|
168 }
|
Chris@0
|
169
|
Chris@0
|
170 /**
|
Chris@0
|
171 * {@inheritDoc}
|
Chris@0
|
172 */
|
Chris@0
|
173 public function getInterfaces()
|
Chris@0
|
174 {
|
Chris@0
|
175 throw new ReflectionException('Method not implemented');
|
Chris@0
|
176 }
|
Chris@0
|
177
|
Chris@0
|
178 /**
|
Chris@0
|
179 * {@inheritDoc}
|
Chris@0
|
180 */
|
Chris@0
|
181 public function getMethods($filter = null)
|
Chris@0
|
182 {
|
Chris@0
|
183 throw new ReflectionException('Method not implemented');
|
Chris@0
|
184 }
|
Chris@0
|
185
|
Chris@0
|
186 /**
|
Chris@0
|
187 * {@inheritDoc}
|
Chris@0
|
188 */
|
Chris@0
|
189 public function getModifiers()
|
Chris@0
|
190 {
|
Chris@0
|
191 throw new ReflectionException('Method not implemented');
|
Chris@0
|
192 }
|
Chris@0
|
193
|
Chris@0
|
194 /**
|
Chris@0
|
195 * {@inheritDoc}
|
Chris@0
|
196 */
|
Chris@0
|
197 public function getParentClass()
|
Chris@0
|
198 {
|
Chris@0
|
199 throw new ReflectionException('Method not implemented');
|
Chris@0
|
200 }
|
Chris@0
|
201
|
Chris@0
|
202 /**
|
Chris@0
|
203 * {@inheritDoc}
|
Chris@0
|
204 */
|
Chris@0
|
205 public function getProperties($filter = null)
|
Chris@0
|
206 {
|
Chris@0
|
207 throw new ReflectionException('Method not implemented');
|
Chris@0
|
208 }
|
Chris@0
|
209
|
Chris@0
|
210 /**
|
Chris@0
|
211 * {@inheritDoc}
|
Chris@0
|
212 */
|
Chris@0
|
213 public function getShortName()
|
Chris@0
|
214 {
|
Chris@0
|
215 throw new ReflectionException('Method not implemented');
|
Chris@0
|
216 }
|
Chris@0
|
217
|
Chris@0
|
218 /**
|
Chris@0
|
219 * {@inheritDoc}
|
Chris@0
|
220 */
|
Chris@0
|
221 public function getStartLine()
|
Chris@0
|
222 {
|
Chris@0
|
223 throw new ReflectionException('Method not implemented');
|
Chris@0
|
224 }
|
Chris@0
|
225
|
Chris@0
|
226 /**
|
Chris@0
|
227 * {@inheritDoc}
|
Chris@0
|
228 */
|
Chris@0
|
229 public function getStaticProperties()
|
Chris@0
|
230 {
|
Chris@0
|
231 throw new ReflectionException('Method not implemented');
|
Chris@0
|
232 }
|
Chris@0
|
233
|
Chris@0
|
234 /**
|
Chris@0
|
235 * {@inheritDoc}
|
Chris@0
|
236 */
|
Chris@0
|
237 public function getStaticPropertyValue($name, $default = '')
|
Chris@0
|
238 {
|
Chris@0
|
239 throw new ReflectionException('Method not implemented');
|
Chris@0
|
240 }
|
Chris@0
|
241
|
Chris@0
|
242 /**
|
Chris@0
|
243 * {@inheritDoc}
|
Chris@0
|
244 */
|
Chris@0
|
245 public function getTraitAliases()
|
Chris@0
|
246 {
|
Chris@0
|
247 throw new ReflectionException('Method not implemented');
|
Chris@0
|
248 }
|
Chris@0
|
249
|
Chris@0
|
250 /**
|
Chris@0
|
251 * {@inheritDoc}
|
Chris@0
|
252 */
|
Chris@0
|
253 public function getTraitNames()
|
Chris@0
|
254 {
|
Chris@0
|
255 throw new ReflectionException('Method not implemented');
|
Chris@0
|
256 }
|
Chris@0
|
257
|
Chris@0
|
258 /**
|
Chris@0
|
259 * {@inheritDoc}
|
Chris@0
|
260 */
|
Chris@0
|
261 public function getTraits()
|
Chris@0
|
262 {
|
Chris@0
|
263 throw new ReflectionException('Method not implemented');
|
Chris@0
|
264 }
|
Chris@0
|
265
|
Chris@0
|
266 /**
|
Chris@0
|
267 * {@inheritDoc}
|
Chris@0
|
268 */
|
Chris@0
|
269 public function hasConstant($name)
|
Chris@0
|
270 {
|
Chris@0
|
271 throw new ReflectionException('Method not implemented');
|
Chris@0
|
272 }
|
Chris@0
|
273
|
Chris@0
|
274 /**
|
Chris@0
|
275 * {@inheritDoc}
|
Chris@0
|
276 */
|
Chris@0
|
277 public function hasMethod($name)
|
Chris@0
|
278 {
|
Chris@0
|
279 throw new ReflectionException('Method not implemented');
|
Chris@0
|
280 }
|
Chris@0
|
281
|
Chris@0
|
282 /**
|
Chris@0
|
283 * {@inheritDoc}
|
Chris@0
|
284 */
|
Chris@0
|
285 public function hasProperty($name)
|
Chris@0
|
286 {
|
Chris@0
|
287 throw new ReflectionException('Method not implemented');
|
Chris@0
|
288 }
|
Chris@0
|
289
|
Chris@0
|
290 /**
|
Chris@0
|
291 * {@inheritDoc}
|
Chris@0
|
292 */
|
Chris@0
|
293 public function implementsInterface($interface)
|
Chris@0
|
294 {
|
Chris@0
|
295 throw new ReflectionException('Method not implemented');
|
Chris@0
|
296 }
|
Chris@0
|
297
|
Chris@0
|
298 /**
|
Chris@0
|
299 * {@inheritDoc}
|
Chris@0
|
300 */
|
Chris@0
|
301 public function inNamespace()
|
Chris@0
|
302 {
|
Chris@0
|
303 throw new ReflectionException('Method not implemented');
|
Chris@0
|
304 }
|
Chris@0
|
305
|
Chris@0
|
306 /**
|
Chris@0
|
307 * {@inheritDoc}
|
Chris@0
|
308 */
|
Chris@0
|
309 public function isAbstract()
|
Chris@0
|
310 {
|
Chris@0
|
311 throw new ReflectionException('Method not implemented');
|
Chris@0
|
312 }
|
Chris@0
|
313
|
Chris@0
|
314 /**
|
Chris@0
|
315 * {@inheritDoc}
|
Chris@0
|
316 */
|
Chris@0
|
317 public function isCloneable()
|
Chris@0
|
318 {
|
Chris@0
|
319 throw new ReflectionException('Method not implemented');
|
Chris@0
|
320 }
|
Chris@0
|
321
|
Chris@0
|
322 /**
|
Chris@0
|
323 * {@inheritDoc}
|
Chris@0
|
324 */
|
Chris@0
|
325 public function isFinal()
|
Chris@0
|
326 {
|
Chris@0
|
327 throw new ReflectionException('Method not implemented');
|
Chris@0
|
328 }
|
Chris@0
|
329
|
Chris@0
|
330 /**
|
Chris@0
|
331 * {@inheritDoc}
|
Chris@0
|
332 */
|
Chris@0
|
333 public function isInstance($object)
|
Chris@0
|
334 {
|
Chris@0
|
335 throw new ReflectionException('Method not implemented');
|
Chris@0
|
336 }
|
Chris@0
|
337
|
Chris@0
|
338 /**
|
Chris@0
|
339 * {@inheritDoc}
|
Chris@0
|
340 */
|
Chris@0
|
341 public function isInstantiable()
|
Chris@0
|
342 {
|
Chris@0
|
343 throw new ReflectionException('Method not implemented');
|
Chris@0
|
344 }
|
Chris@0
|
345
|
Chris@0
|
346 /**
|
Chris@0
|
347 * {@inheritDoc}
|
Chris@0
|
348 */
|
Chris@0
|
349 public function isInterface()
|
Chris@0
|
350 {
|
Chris@0
|
351 throw new ReflectionException('Method not implemented');
|
Chris@0
|
352 }
|
Chris@0
|
353
|
Chris@0
|
354 /**
|
Chris@0
|
355 * {@inheritDoc}
|
Chris@0
|
356 */
|
Chris@0
|
357 public function isInternal()
|
Chris@0
|
358 {
|
Chris@0
|
359 throw new ReflectionException('Method not implemented');
|
Chris@0
|
360 }
|
Chris@0
|
361
|
Chris@0
|
362 /**
|
Chris@0
|
363 * {@inheritDoc}
|
Chris@0
|
364 */
|
Chris@0
|
365 public function isIterateable()
|
Chris@0
|
366 {
|
Chris@0
|
367 throw new ReflectionException('Method not implemented');
|
Chris@0
|
368 }
|
Chris@0
|
369
|
Chris@0
|
370 /**
|
Chris@0
|
371 * {@inheritDoc}
|
Chris@0
|
372 */
|
Chris@0
|
373 public function isSubclassOf($class)
|
Chris@0
|
374 {
|
Chris@0
|
375 throw new ReflectionException('Method not implemented');
|
Chris@0
|
376 }
|
Chris@0
|
377
|
Chris@0
|
378 /**
|
Chris@0
|
379 * {@inheritDoc}
|
Chris@0
|
380 */
|
Chris@0
|
381 public function isTrait()
|
Chris@0
|
382 {
|
Chris@0
|
383 throw new ReflectionException('Method not implemented');
|
Chris@0
|
384 }
|
Chris@0
|
385
|
Chris@0
|
386 /**
|
Chris@0
|
387 * {@inheritDoc}
|
Chris@0
|
388 */
|
Chris@0
|
389 public function isUserDefined()
|
Chris@0
|
390 {
|
Chris@0
|
391 throw new ReflectionException('Method not implemented');
|
Chris@0
|
392 }
|
Chris@0
|
393
|
Chris@0
|
394 /**
|
Chris@0
|
395 * {@inheritDoc}
|
Chris@0
|
396 */
|
Chris@0
|
397 public function newInstance($args)
|
Chris@0
|
398 {
|
Chris@0
|
399 throw new ReflectionException('Method not implemented');
|
Chris@0
|
400 }
|
Chris@0
|
401
|
Chris@0
|
402 /**
|
Chris@0
|
403 * {@inheritDoc}
|
Chris@0
|
404 */
|
Chris@0
|
405 public function newInstanceArgs(array $args = [])
|
Chris@0
|
406 {
|
Chris@0
|
407 throw new ReflectionException('Method not implemented');
|
Chris@0
|
408 }
|
Chris@0
|
409
|
Chris@0
|
410 /**
|
Chris@0
|
411 * {@inheritDoc}
|
Chris@0
|
412 */
|
Chris@0
|
413 public function newInstanceWithoutConstructor()
|
Chris@0
|
414 {
|
Chris@0
|
415 throw new ReflectionException('Method not implemented');
|
Chris@0
|
416 }
|
Chris@0
|
417
|
Chris@0
|
418 /**
|
Chris@0
|
419 * {@inheritDoc}
|
Chris@0
|
420 */
|
Chris@0
|
421 public function setStaticPropertyValue($name, $value)
|
Chris@0
|
422 {
|
Chris@0
|
423 throw new ReflectionException('Method not implemented');
|
Chris@0
|
424 }
|
Chris@0
|
425
|
Chris@0
|
426 /**
|
Chris@0
|
427 * {@inheritDoc}
|
Chris@0
|
428 */
|
Chris@0
|
429 public function __toString()
|
Chris@0
|
430 {
|
Chris@0
|
431 throw new ReflectionException('Method not implemented');
|
Chris@0
|
432 }
|
Chris@0
|
433 }
|