Debian Codegraph @

codelitephp/resources/cc/Reflection.php

raw
1 <?php
2
3 // Start of Reflection v.$Id: 8e5fcadef43ea0f77c7886557613923e30b979dd $
4
5 class ReflectionException extends Exception {
6 protected $message;
7 protected $code;
8 protected $file;
9 protected $line;
10
11
12 final private function __clone () {}
13
14 /**
15 * @param message[optional]
16 * @param code[optional]
17 * @param previous[optional]
18 */
19 public function __construct ($message, $code, $previous) {}
20
21 final public function getMessage () {}
22
23 final public function getCode () {}
24
25 final public function getFile () {}
26
27 final public function getLine () {}
28
29 final public function getTrace () {}
30
31 final public function getPrevious () {}
32
33 final public function getTraceAsString () {}
34
35 public function __toString () {}
36
37 }
38
39 class Reflection {
40
41 /**
42 * Gets modifier names
43 * @link http://www.php.net/manual/en/reflection.getmodifiernames.php
44 * @param modifiers int <p>
45 * The modifiers to get, which is from a numeric value.
46 * </p>
47 * @return array An array of modifier names.
48 */
49 public static function getModifierNames ($modifiers) {}
50
51 /**
52 * Exports
53 * @link http://www.php.net/manual/en/reflection.export.php
54 * @param reflector Reflector <p>
55 * &reflection.export.param.name;
56 * </p>
57 * @param return bool[optional] <p>
58 * &reflection.export.param.return;
59 * </p>
60 * @return string &reflection.export.return;
61 */
62 public static function export ($reflector, $return = null) {}
63
64 }
65
66 interface Reflector {
67
68 /**
69 * Exports
70 * @link http://www.php.net/manual/en/reflector.export.php
71 * @return string
72 */
73 abstract public static function export () ;
74
75 /**
76 * To string
77 * @link http://www.php.net/manual/en/reflector.tostring.php
78 * @return string
79 */
80 abstract public function __toString () ;
81
82 }
83
84 class ReflectionFunctionAbstract implements Reflector {
85 abstract public $name;
86
87
88 /**
89 * Clones function
90 * @link http://www.php.net/manual/en/reflectionfunctionabstract.clone.php
91 * @return void
92 */
93 final private function __clone () {}
94
95 /**
96 * To string
97 * @link http://www.php.net/manual/en/reflectionfunctionabstract.tostring.php
98 * @return void The string.
99 */
100 abstract public function __toString () {}
101
102 /**
103 * Checks if function in namespace
104 * @link http://www.php.net/manual/en/reflectionfunctionabstract.innamespace.php
105 * @return bool true if it's in a namespace, otherwise false
106 */
107 public function inNamespace () {}
108
109 /**
110 * Checks if closure
111 * @link http://www.php.net/manual/en/reflectionfunctionabstract.isclosure.php
112 * @return bool true if it's a closure, otherwise false
113 */
114 public function isClosure () {}
115
116 /**
117 * Checks if deprecated
118 * @link http://www.php.net/manual/en/reflectionfunctionabstract.isdeprecated.php
119 * @return bool true if it's deprecated, otherwise false
120 */
121 public function isDeprecated () {}
122
123 /**
124 * Checks if is internal
125 * @link http://www.php.net/manual/en/reflectionfunctionabstract.isinternal.php
126 * @return bool true if it's internal, otherwise false
127 */
128 public function isInternal () {}
129
130 /**
131 * Checks if user defined
132 * @link http://www.php.net/manual/en/reflectionfunctionabstract.isuserdefined.php
133 * @return bool true if it's user-defined, otherwise false;
134 */
135 public function isUserDefined () {}
136
137 /**
138 * Returns whether this function is a generator
139 * @link http://www.php.net/manual/en/reflectionfunctionabstract.isgenerator.php
140 * @return bool true if the function is generator, false if it is not or &null;
141 * on failure.
142 */
143 public function isGenerator () {}
144
145 public function isVariadic () {}
146
147 /**
148 * Returns this pointer bound to closure
149 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getclosurethis.php
150 * @return object $this pointer.
151 * Returns &null; in case of an error.
152 */
153 public function getClosureThis () {}
154
155 /**
156 * Returns the scope associated to the closure
157 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getclosurescopeclass.php
158 * @return ReflectionClass the class on success or &null; on failure.
159 */
160 public function getClosureScopeClass () {}
161
162 /**
163 * Gets doc comment
164 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getdoccomment.php
165 * @return string The doc comment if it exists, otherwise false
166 */
167 public function getDocComment () {}
168
169 /**
170 * Gets end line number
171 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getendline.php
172 * @return int The ending line number of the user defined function, or false if unknown.
173 */
174 public function getEndLine () {}
175
176 /**
177 * Gets extension info
178 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getextension.php
179 * @return ReflectionExtension The extension information, as a ReflectionExtension object.
180 */
181 public function getExtension () {}
182
183 /**
184 * Gets extension name
185 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getextensionname.php
186 * @return string The extensions name.
187 */
188 public function getExtensionName () {}
189
190 /**
191 * Gets file name
192 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getfilename.php
193 * @return string The file name.
194 */
195 public function getFileName () {}
196
197 /**
198 * Gets function name
199 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getname.php
200 * @return string The name of the function.
201 */
202 public function getName () {}
203
204 /**
205 * Gets namespace name
206 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getnamespacename.php
207 * @return string The namespace name.
208 */
209 public function getNamespaceName () {}
210
211 /**
212 * Gets number of parameters
213 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getnumberofparameters.php
214 * @return int The number of parameters.
215 */
216 public function getNumberOfParameters () {}
217
218 /**
219 * Gets number of required parameters
220 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getnumberofrequiredparameters.php
221 * @return int The number of required parameters.
222 */
223 public function getNumberOfRequiredParameters () {}
224
225 /**
226 * Gets parameters
227 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getparameters.php
228 * @return array The parameters, as a ReflectionParameter object.
229 */
230 public function getParameters () {}
231
232 /**
233 * Gets function short name
234 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getshortname.php
235 * @return string The short name of the function.
236 */
237 public function getShortName () {}
238
239 /**
240 * Gets starting line number
241 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getstartline.php
242 * @return int The starting line number.
243 */
244 public function getStartLine () {}
245
246 /**
247 * Gets static variables
248 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getstaticvariables.php
249 * @return array An array of static variables.
250 */
251 public function getStaticVariables () {}
252
253 /**
254 * Checks if returns reference
255 * @link http://www.php.net/manual/en/reflectionfunctionabstract.returnsreference.php
256 * @return bool true if it returns a reference, otherwise false
257 */
258 public function returnsReference () {}
259
260 }
261
262 class ReflectionFunction extends ReflectionFunctionAbstract implements Reflector {
263 const IS_DEPRECATED = 262144;
264
265 public $name;
266
267
268 /**
269 * Constructs a ReflectionFunction object
270 * @link http://www.php.net/manual/en/reflectionfunction.construct.php
271 * @param name
272 */
273 public function __construct ($name) {}
274
275 /**
276 * To string
277 * @link http://www.php.net/manual/en/reflectionfunction.tostring.php
278 * @return string ReflectionFunction::export-like output for
279 * the function.
280 */
281 public function __toString () {}
282
283 /**
284 * Exports function
285 * @link http://www.php.net/manual/en/reflectionfunction.export.php
286 * @param name string <p>
287 * &reflection.export.param.name;
288 * </p>
289 * @param return string[optional] <p>
290 * &reflection.export.param.return;
291 * </p>
292 * @return string &reflection.export.return;
293 */
294 public static function export ($name, $return = null) {}
295
296 /**
297 * Checks if function is disabled
298 * @link http://www.php.net/manual/en/reflectionfunction.isdisabled.php
299 * @return bool true if it's disable, otherwise false
300 */
301 public function isDisabled () {}
302
303 /**
304 * Invokes function
305 * @link http://www.php.net/manual/en/reflectionfunction.invoke.php
306 * @param parameter mixed[optional]
307 * @param _ mixed[optional]
308 * @return mixed the result of the invoked function call.
309 */
310 public function invoke ($parameter = null, $_ = null) {}
311
312 /**
313 * Invokes function args
314 * @link http://www.php.net/manual/en/reflectionfunction.invokeargs.php
315 * @param args array <p>
316 * The passed arguments to the function as an array, much like
317 * call_user_func_array works.
318 * </p>
319 * @return mixed the result of the invoked function
320 */
321 public function invokeArgs (array $args) {}
322
323 /**
324 * Returns a dynamically created closure for the function
325 * @link http://www.php.net/manual/en/reflectionfunction.getclosure.php
326 * @return Closure Closure.
327 * Returns &null; in case of an error.
328 */
329 public function getClosure () {}
330
331 /**
332 * Clones function
333 * @link http://www.php.net/manual/en/reflectionfunctionabstract.clone.php
334 * @return void
335 */
336 final private function __clone () {}
337
338 /**
339 * Checks if function in namespace
340 * @link http://www.php.net/manual/en/reflectionfunctionabstract.innamespace.php
341 * @return bool true if it's in a namespace, otherwise false
342 */
343 public function inNamespace () {}
344
345 /**
346 * Checks if closure
347 * @link http://www.php.net/manual/en/reflectionfunctionabstract.isclosure.php
348 * @return bool true if it's a closure, otherwise false
349 */
350 public function isClosure () {}
351
352 /**
353 * Checks if deprecated
354 * @link http://www.php.net/manual/en/reflectionfunctionabstract.isdeprecated.php
355 * @return bool true if it's deprecated, otherwise false
356 */
357 public function isDeprecated () {}
358
359 /**
360 * Checks if is internal
361 * @link http://www.php.net/manual/en/reflectionfunctionabstract.isinternal.php
362 * @return bool true if it's internal, otherwise false
363 */
364 public function isInternal () {}
365
366 /**
367 * Checks if user defined
368 * @link http://www.php.net/manual/en/reflectionfunctionabstract.isuserdefined.php
369 * @return bool true if it's user-defined, otherwise false;
370 */
371 public function isUserDefined () {}
372
373 /**
374 * Returns whether this function is a generator
375 * @link http://www.php.net/manual/en/reflectionfunctionabstract.isgenerator.php
376 * @return bool true if the function is generator, false if it is not or &null;
377 * on failure.
378 */
379 public function isGenerator () {}
380
381 public function isVariadic () {}
382
383 /**
384 * Returns this pointer bound to closure
385 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getclosurethis.php
386 * @return object $this pointer.
387 * Returns &null; in case of an error.
388 */
389 public function getClosureThis () {}
390
391 /**
392 * Returns the scope associated to the closure
393 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getclosurescopeclass.php
394 * @return ReflectionClass the class on success or &null; on failure.
395 */
396 public function getClosureScopeClass () {}
397
398 /**
399 * Gets doc comment
400 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getdoccomment.php
401 * @return string The doc comment if it exists, otherwise false
402 */
403 public function getDocComment () {}
404
405 /**
406 * Gets end line number
407 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getendline.php
408 * @return int The ending line number of the user defined function, or false if unknown.
409 */
410 public function getEndLine () {}
411
412 /**
413 * Gets extension info
414 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getextension.php
415 * @return ReflectionExtension The extension information, as a ReflectionExtension object.
416 */
417 public function getExtension () {}
418
419 /**
420 * Gets extension name
421 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getextensionname.php
422 * @return string The extensions name.
423 */
424 public function getExtensionName () {}
425
426 /**
427 * Gets file name
428 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getfilename.php
429 * @return string The file name.
430 */
431 public function getFileName () {}
432
433 /**
434 * Gets function name
435 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getname.php
436 * @return string The name of the function.
437 */
438 public function getName () {}
439
440 /**
441 * Gets namespace name
442 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getnamespacename.php
443 * @return string The namespace name.
444 */
445 public function getNamespaceName () {}
446
447 /**
448 * Gets number of parameters
449 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getnumberofparameters.php
450 * @return int The number of parameters.
451 */
452 public function getNumberOfParameters () {}
453
454 /**
455 * Gets number of required parameters
456 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getnumberofrequiredparameters.php
457 * @return int The number of required parameters.
458 */
459 public function getNumberOfRequiredParameters () {}
460
461 /**
462 * Gets parameters
463 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getparameters.php
464 * @return array The parameters, as a ReflectionParameter object.
465 */
466 public function getParameters () {}
467
468 /**
469 * Gets function short name
470 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getshortname.php
471 * @return string The short name of the function.
472 */
473 public function getShortName () {}
474
475 /**
476 * Gets starting line number
477 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getstartline.php
478 * @return int The starting line number.
479 */
480 public function getStartLine () {}
481
482 /**
483 * Gets static variables
484 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getstaticvariables.php
485 * @return array An array of static variables.
486 */
487 public function getStaticVariables () {}
488
489 /**
490 * Checks if returns reference
491 * @link http://www.php.net/manual/en/reflectionfunctionabstract.returnsreference.php
492 * @return bool true if it returns a reference, otherwise false
493 */
494 public function returnsReference () {}
495
496 }
497
498 class ReflectionParameter implements Reflector {
499 public $name;
500
501
502 /**
503 * Clone
504 * @link http://www.php.net/manual/en/reflectionparameter.clone.php
505 * @return void
506 */
507 final private function __clone () {}
508
509 /**
510 * Exports
511 * @link http://www.php.net/manual/en/reflectionparameter.export.php
512 * @param function string <p>
513 * The function name.
514 * </p>
515 * @param parameter string <p>
516 * The parameter name.
517 * </p>
518 * @param return bool[optional] <p>
519 * &reflection.export.param.return;
520 * </p>
521 * @return string The exported reflection.
522 */
523 public static function export ($function, $parameter, $return = null) {}
524
525 /**
526 * Construct
527 * @link http://www.php.net/manual/en/reflectionparameter.construct.php
528 * @param function
529 * @param parameter
530 */
531 public function __construct ($function, $parameter) {}
532
533 /**
534 * To string
535 * @link http://www.php.net/manual/en/reflectionparameter.tostring.php
536 * @return string
537 */
538 public function __toString () {}
539
540 /**
541 * Gets parameter name
542 * @link http://www.php.net/manual/en/reflectionparameter.getname.php
543 * @return string The name of the reflected parameter.
544 */
545 public function getName () {}
546
547 /**
548 * Checks if passed by reference
549 * @link http://www.php.net/manual/en/reflectionparameter.ispassedbyreference.php
550 * @return bool true if the parameter is passed in by reference, otherwise false
551 */
552 public function isPassedByReference () {}
553
554 /**
555 * Returns whether this parameter can be passed by value
556 * @link http://www.php.net/manual/en/reflectionparameter.canbepassedbyvalue.php
557 * @return bool true if the parameter can be passed by value, false otherwise.
558 * Returns &null; in case of an error.
559 */
560 public function canBePassedByValue () {}
561
562 /**
563 * Gets declaring function
564 * @link http://www.php.net/manual/en/reflectionparameter.getdeclaringfunction.php
565 * @return ReflectionFunctionAbstract A ReflectionFunction object.
566 */
567 public function getDeclaringFunction () {}
568
569 /**
570 * Gets declaring class
571 * @link http://www.php.net/manual/en/reflectionparameter.getdeclaringclass.php
572 * @return ReflectionClass A ReflectionClass object.
573 */
574 public function getDeclaringClass () {}
575
576 /**
577 * Get the type hinted class
578 * @link http://www.php.net/manual/en/reflectionparameter.getclass.php
579 * @return ReflectionClass A ReflectionClass object.
580 */
581 public function getClass () {}
582
583 /**
584 * Checks if parameter expects an array
585 * @link http://www.php.net/manual/en/reflectionparameter.isarray.php
586 * @return bool true if an array is expected, false otherwise.
587 */
588 public function isArray () {}
589
590 /**
591 * Returns whether parameter MUST be callable
592 * @link http://www.php.net/manual/en/reflectionparameter.iscallable.php
593 * @return bool true if the parameter is callable, false if it is
594 * not or &null; on failure.
595 */
596 public function isCallable () {}
597
598 /**
599 * Checks if null is allowed
600 * @link http://www.php.net/manual/en/reflectionparameter.allowsnull.php
601 * @return bool true if &null; is allowed, otherwise false
602 */
603 public function allowsNull () {}
604
605 /**
606 * Gets parameter position
607 * @link http://www.php.net/manual/en/reflectionparameter.getposition.php
608 * @return int The position of the parameter, left to right, starting at position #0.
609 */
610 public function getPosition () {}
611
612 /**
613 * Checks if optional
614 * @link http://www.php.net/manual/en/reflectionparameter.isoptional.php
615 * @return bool true if the parameter is optional, otherwise false
616 */
617 public function isOptional () {}
618
619 /**
620 * Checks if a default value is available
621 * @link http://www.php.net/manual/en/reflectionparameter.isdefaultvalueavailable.php
622 * @return bool true if a default value is available, otherwise false
623 */
624 public function isDefaultValueAvailable () {}
625
626 /**
627 * Gets default parameter value
628 * @link http://www.php.net/manual/en/reflectionparameter.getdefaultvalue.php
629 * @return mixed The parameters default value.
630 */
631 public function getDefaultValue () {}
632
633 /**
634 * Returns whether the default value of this parameter is constant
635 * @link http://www.php.net/manual/en/reflectionparameter.isdefaultvalueconstant.php
636 * @return bool true if the default value is constant, false if it is not or
637 * &null; on failure.
638 */
639 public function isDefaultValueConstant () {}
640
641 /**
642 * Returns the default value's constant name if default value is constant or null
643 * @link http://www.php.net/manual/en/reflectionparameter.getdefaultvalueconstantname.php
644 * @return string string on success or &null; on failure.
645 */
646 public function getDefaultValueConstantName () {}
647
648 public function isVariadic () {}
649
650 }
651
652 class ReflectionMethod extends ReflectionFunctionAbstract implements Reflector {
653 const IS_STATIC = 1;
654 const IS_PUBLIC = 256;
655 const IS_PROTECTED = 512;
656 const IS_PRIVATE = 1024;
657 const IS_ABSTRACT = 2;
658 const IS_FINAL = 4;
659
660 public $name;
661 public $class;
662
663
664 /**
665 * Export a reflection method.
666 * @link http://www.php.net/manual/en/reflectionmethod.export.php
667 * @param class string <p>
668 * The class name.
669 * </p>
670 * @param name string <p>
671 * The name of the method.
672 * </p>
673 * @param return bool[optional] <p>
674 * &reflection.export.param.return;
675 * </p>
676 * @return string &reflection.export.return;
677 */
678 public static function export ($class, $name, $return = null) {}
679
680 /**
681 * Constructs a ReflectionMethod
682 * @link http://www.php.net/manual/en/reflectionmethod.construct.php
683 * @param class_method string <p>
684 * Class name and method name delimited by ::.
685 * </p>
686 * @return mixed
687 */
688 public function __construct ($class_method) {}
689
690 /**
691 * Returns the string representation of the Reflection method object.
692 * @link http://www.php.net/manual/en/reflectionmethod.tostring.php
693 * @return string A string representation of this ReflectionMethod instance.
694 */
695 public function __toString () {}
696
697 /**
698 * Checks if method is public
699 * @link http://www.php.net/manual/en/reflectionmethod.ispublic.php
700 * @return bool true if the method is public, otherwise false
701 */
702 public function isPublic () {}
703
704 /**
705 * Checks if method is private
706 * @link http://www.php.net/manual/en/reflectionmethod.isprivate.php
707 * @return bool true if the method is private, otherwise false
708 */
709 public function isPrivate () {}
710
711 /**
712 * Checks if method is protected
713 * @link http://www.php.net/manual/en/reflectionmethod.isprotected.php
714 * @return bool true if the method is protected, otherwise false
715 */
716 public function isProtected () {}
717
718 /**
719 * Checks if method is abstract
720 * @link http://www.php.net/manual/en/reflectionmethod.isabstract.php
721 * @return bool true if the method is abstract, otherwise false
722 */
723 public function isAbstract () {}
724
725 /**
726 * Checks if method is final
727 * @link http://www.php.net/manual/en/reflectionmethod.isfinal.php
728 * @return bool true if the method is final, otherwise false
729 */
730 public function isFinal () {}
731
732 /**
733 * Checks if method is static
734 * @link http://www.php.net/manual/en/reflectionmethod.isstatic.php
735 * @return bool true if the method is static, otherwise false
736 */
737 public function isStatic () {}
738
739 /**
740 * Checks if method is a constructor
741 * @link http://www.php.net/manual/en/reflectionmethod.isconstructor.php
742 * @return bool true if the method is a constructor, otherwise false
743 */
744 public function isConstructor () {}
745
746 /**
747 * Checks if method is a destructor
748 * @link http://www.php.net/manual/en/reflectionmethod.isdestructor.php
749 * @return bool true if the method is a destructor, otherwise false
750 */
751 public function isDestructor () {}
752
753 /**
754 * Returns a dynamically created closure for the method
755 * @link http://www.php.net/manual/en/reflectionmethod.getclosure.php
756 * @param object object <p>
757 * Forbidden for static methods, required for other methods.
758 * </p>
759 * @return Closure Closure.
760 * Returns &null; in case of an error.
761 */
762 public function getClosure ($object) {}
763
764 /**
765 * Gets the method modifiers
766 * @link http://www.php.net/manual/en/reflectionmethod.getmodifiers.php
767 * @return int A numeric representation of the modifiers. The modifiers are listed below.
768 * The actual meanings of these modifiers are described in the
769 * predefined constants.
770 */
771 public function getModifiers () {}
772
773 /**
774 * Invoke
775 * @link http://www.php.net/manual/en/reflectionmethod.invoke.php
776 * @param object object <p>
777 * The object to invoke the method on. For static methods, pass
778 * null to this parameter.
779 * </p>
780 * @param parameter mixed[optional] <p>
781 * Zero or more parameters to be passed to the method.
782 * It accepts a variable number of parameters which are passed to the method.
783 * </p>
784 * @param _ mixed[optional]
785 * @return mixed the method result.
786 */
787 public function invoke ($object, $parameter = null, $_ = null) {}
788
789 /**
790 * Invoke args
791 * @link http://www.php.net/manual/en/reflectionmethod.invokeargs.php
792 * @param object object <p>
793 * The object to invoke the method on. In case of static methods, you can pass
794 * null to this parameter.
795 * </p>
796 * @param args array <p>
797 * The parameters to be passed to the function, as an array.
798 * </p>
799 * @return mixed the method result.
800 */
801 public function invokeArgs ($object, array $args) {}
802
803 /**
804 * Gets declaring class for the reflected method.
805 * @link http://www.php.net/manual/en/reflectionmethod.getdeclaringclass.php
806 * @return ReflectionClass A ReflectionClass object of the class that the
807 * reflected method is part of.
808 */
809 public function getDeclaringClass () {}
810
811 /**
812 * Gets the method prototype (if there is one).
813 * @link http://www.php.net/manual/en/reflectionmethod.getprototype.php
814 * @return ReflectionMethod A ReflectionMethod instance of the method prototype.
815 */
816 public function getPrototype () {}
817
818 /**
819 * Set method accessibility
820 * @link http://www.php.net/manual/en/reflectionmethod.setaccessible.php
821 * @param accessible bool <p>
822 * true to allow accessibility, or false.
823 * </p>
824 * @return void
825 */
826 public function setAccessible ($accessible) {}
827
828 /**
829 * Clones function
830 * @link http://www.php.net/manual/en/reflectionfunctionabstract.clone.php
831 * @return void
832 */
833 final private function __clone () {}
834
835 /**
836 * Checks if function in namespace
837 * @link http://www.php.net/manual/en/reflectionfunctionabstract.innamespace.php
838 * @return bool true if it's in a namespace, otherwise false
839 */
840 public function inNamespace () {}
841
842 /**
843 * Checks if closure
844 * @link http://www.php.net/manual/en/reflectionfunctionabstract.isclosure.php
845 * @return bool true if it's a closure, otherwise false
846 */
847 public function isClosure () {}
848
849 /**
850 * Checks if deprecated
851 * @link http://www.php.net/manual/en/reflectionfunctionabstract.isdeprecated.php
852 * @return bool true if it's deprecated, otherwise false
853 */
854 public function isDeprecated () {}
855
856 /**
857 * Checks if is internal
858 * @link http://www.php.net/manual/en/reflectionfunctionabstract.isinternal.php
859 * @return bool true if it's internal, otherwise false
860 */
861 public function isInternal () {}
862
863 /**
864 * Checks if user defined
865 * @link http://www.php.net/manual/en/reflectionfunctionabstract.isuserdefined.php
866 * @return bool true if it's user-defined, otherwise false;
867 */
868 public function isUserDefined () {}
869
870 /**
871 * Returns whether this function is a generator
872 * @link http://www.php.net/manual/en/reflectionfunctionabstract.isgenerator.php
873 * @return bool true if the function is generator, false if it is not or &null;
874 * on failure.
875 */
876 public function isGenerator () {}
877
878 public function isVariadic () {}
879
880 /**
881 * Returns this pointer bound to closure
882 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getclosurethis.php
883 * @return object $this pointer.
884 * Returns &null; in case of an error.
885 */
886 public function getClosureThis () {}
887
888 /**
889 * Returns the scope associated to the closure
890 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getclosurescopeclass.php
891 * @return ReflectionClass the class on success or &null; on failure.
892 */
893 public function getClosureScopeClass () {}
894
895 /**
896 * Gets doc comment
897 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getdoccomment.php
898 * @return string The doc comment if it exists, otherwise false
899 */
900 public function getDocComment () {}
901
902 /**
903 * Gets end line number
904 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getendline.php
905 * @return int The ending line number of the user defined function, or false if unknown.
906 */
907 public function getEndLine () {}
908
909 /**
910 * Gets extension info
911 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getextension.php
912 * @return ReflectionExtension The extension information, as a ReflectionExtension object.
913 */
914 public function getExtension () {}
915
916 /**
917 * Gets extension name
918 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getextensionname.php
919 * @return string The extensions name.
920 */
921 public function getExtensionName () {}
922
923 /**
924 * Gets file name
925 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getfilename.php
926 * @return string The file name.
927 */
928 public function getFileName () {}
929
930 /**
931 * Gets function name
932 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getname.php
933 * @return string The name of the function.
934 */
935 public function getName () {}
936
937 /**
938 * Gets namespace name
939 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getnamespacename.php
940 * @return string The namespace name.
941 */
942 public function getNamespaceName () {}
943
944 /**
945 * Gets number of parameters
946 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getnumberofparameters.php
947 * @return int The number of parameters.
948 */
949 public function getNumberOfParameters () {}
950
951 /**
952 * Gets number of required parameters
953 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getnumberofrequiredparameters.php
954 * @return int The number of required parameters.
955 */
956 public function getNumberOfRequiredParameters () {}
957
958 /**
959 * Gets parameters
960 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getparameters.php
961 * @return array The parameters, as a ReflectionParameter object.
962 */
963 public function getParameters () {}
964
965 /**
966 * Gets function short name
967 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getshortname.php
968 * @return string The short name of the function.
969 */
970 public function getShortName () {}
971
972 /**
973 * Gets starting line number
974 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getstartline.php
975 * @return int The starting line number.
976 */
977 public function getStartLine () {}
978
979 /**
980 * Gets static variables
981 * @link http://www.php.net/manual/en/reflectionfunctionabstract.getstaticvariables.php
982 * @return array An array of static variables.
983 */
984 public function getStaticVariables () {}
985
986 /**
987 * Checks if returns reference
988 * @link http://www.php.net/manual/en/reflectionfunctionabstract.returnsreference.php
989 * @return bool true if it returns a reference, otherwise false
990 */
991 public function returnsReference () {}
992
993 }
994
995 class ReflectionClass implements Reflector {
996 const IS_IMPLICIT_ABSTRACT = 16;
997 const IS_EXPLICIT_ABSTRACT = 32;
998 const IS_FINAL = 64;
999
1000 public $name;
1001
1002
1003 final private function __clone () {}
1004
1005 /**
1006 * Exports a class
1007 * @link http://www.php.net/manual/en/reflectionclass.export.php
1008 * @param argument mixed <p>
1009 * &reflection.export.param.name;
1010 * </p>
1011 * @param return bool[optional] <p>
1012 * &reflection.export.param.return;
1013 * </p>
1014 * @return string &reflection.export.return;
1015 */
1016 public static function export ($argument, $return = null) {}
1017
1018 /**
1019 * Constructs a ReflectionClass
1020 * @link http://www.php.net/manual/en/reflectionclass.construct.php
1021 * @param argument
1022 */
1023 public function __construct ($argument) {}
1024
1025 /**
1026 * Returns the string representation of the ReflectionClass object.
1027 * @link http://www.php.net/manual/en/reflectionclass.tostring.php
1028 * @return string A string representation of this ReflectionClass instance.
1029 */
1030 public function __toString () {}
1031
1032 /**
1033 * Gets class name
1034 * @link http://www.php.net/manual/en/reflectionclass.getname.php
1035 * @return string The class name.
1036 */
1037 public function getName () {}
1038
1039 /**
1040 * Checks if class is defined internally by an extension, or the core
1041 * @link http://www.php.net/manual/en/reflectionclass.isinternal.php
1042 * @return bool Returns true on success, false on failure.
1043 */
1044 public function isInternal () {}
1045
1046 /**
1047 * Checks if user defined
1048 * @link http://www.php.net/manual/en/reflectionclass.isuserdefined.php
1049 * @return bool Returns true on success, false on failure.
1050 */
1051 public function isUserDefined () {}
1052
1053 /**
1054 * Checks if the class is instantiable
1055 * @link http://www.php.net/manual/en/reflectionclass.isinstantiable.php
1056 * @return bool Returns true on success, false on failure.
1057 */
1058 public function isInstantiable () {}
1059
1060 /**
1061 * Returns whether this class is cloneable
1062 * @link http://www.php.net/manual/en/reflectionclass.iscloneable.php
1063 * @return bool true if the class is cloneable, false otherwise.
1064 */
1065 public function isCloneable () {}
1066
1067 /**
1068 * Gets the filename of the file in which the class has been defined
1069 * @link http://www.php.net/manual/en/reflectionclass.getfilename.php
1070 * @return string the filename of the file in which the class has been defined.
1071 * If the class is defined in the PHP core or in a PHP extension, false
1072 * is returned.
1073 */
1074 public function getFileName () {}
1075
1076 /**
1077 * Gets starting line number
1078 * @link http://www.php.net/manual/en/reflectionclass.getstartline.php
1079 * @return int The starting line number, as an integer.
1080 */
1081 public function getStartLine () {}
1082
1083 /**
1084 * Gets end line
1085 * @link http://www.php.net/manual/en/reflectionclass.getendline.php
1086 * @return int The ending line number of the user defined class, or false if unknown.
1087 */
1088 public function getEndLine () {}
1089
1090 /**
1091 * Gets doc comments
1092 * @link http://www.php.net/manual/en/reflectionclass.getdoccomment.php
1093 * @return string The doc comment if it exists, otherwise false
1094 */
1095 public function getDocComment () {}
1096
1097 /**
1098 * Gets the constructor of the class
1099 * @link http://www.php.net/manual/en/reflectionclass.getconstructor.php
1100 * @return ReflectionMethod A ReflectionMethod object reflecting the class' constructor, or &null; if the class
1101 * has no constructor.
1102 */
1103 public function getConstructor () {}
1104
1105 /**
1106 * Checks if method is defined
1107 * @link http://www.php.net/manual/en/reflectionclass.hasmethod.php
1108 * @param name string <p>
1109 * Name of the method being checked for.
1110 * </p>
1111 * @return bool true if it has the method, otherwise false
1112 */
1113 public function hasMethod ($name) {}
1114
1115 /**
1116 * Gets a <classname>ReflectionMethod</classname> for a class method.
1117 * @link http://www.php.net/manual/en/reflectionclass.getmethod.php
1118 * @param name string <p>
1119 * The method name to reflect.
1120 * </p>
1121 * @return ReflectionMethod A ReflectionMethod.
1122 */
1123 public function getMethod ($name) {}
1124
1125 /**
1126 * Gets an array of methods
1127 * @link http://www.php.net/manual/en/reflectionclass.getmethods.php
1128 * @param filter int[optional] <p>
1129 * Filter the results to include only methods with certain attributes. Defaults
1130 * to no filtering.
1131 * </p>
1132 * <p>
1133 * Any combination of ReflectionMethod::IS_STATIC,
1134 * ReflectionMethod::IS_PUBLIC,
1135 * ReflectionMethod::IS_PROTECTED,
1136 * ReflectionMethod::IS_PRIVATE,
1137 * ReflectionMethod::IS_ABSTRACT,
1138 * ReflectionMethod::IS_FINAL.
1139 * </p>
1140 * @return array An array of ReflectionMethod objects
1141 * reflecting each method.
1142 */
1143 public function getMethods ($filter = null) {}
1144
1145 /**
1146 * Checks if property is defined
1147 * @link http://www.php.net/manual/en/reflectionclass.hasproperty.php
1148 * @param name string <p>
1149 * Name of the property being checked for.
1150 * </p>
1151 * @return bool true if it has the property, otherwise false
1152 */
1153 public function hasProperty ($name) {}
1154
1155 /**
1156 * Gets a <classname>ReflectionProperty</classname> for a class's property
1157 * @link http://www.php.net/manual/en/reflectionclass.getproperty.php
1158 * @param name string <p>
1159 * The property name.
1160 * </p>
1161 * @return ReflectionProperty A ReflectionProperty.
1162 */
1163 public function getProperty ($name) {}
1164
1165 /**
1166 * Gets properties
1167 * @link http://www.php.net/manual/en/reflectionclass.getproperties.php
1168 * @param filter int[optional] <p>
1169 * The optional filter, for filtering desired property types. It's configured using
1170 * the ReflectionProperty constants,
1171 * and defaults to all property types.
1172 * </p>
1173 * @return array An array of ReflectionProperty objects.
1174 */
1175 public function getProperties ($filter = null) {}
1176
1177 /**
1178 * Checks if constant is defined
1179 * @link http://www.php.net/manual/en/reflectionclass.hasconstant.php
1180 * @param name string <p>
1181 * The name of the constant being checked for.
1182 * </p>
1183 * @return bool true if the constant is defined, otherwise false.
1184 */
1185 public function hasConstant ($name) {}
1186
1187 /**
1188 * Gets constants
1189 * @link http://www.php.net/manual/en/reflectionclass.getconstants.php
1190 * @return array An array of constants.
1191 * Constant name in key, constant value in value.
1192 */
1193 public function getConstants () {}
1194
1195 /**
1196 * Gets defined constant
1197 * @link http://www.php.net/manual/en/reflectionclass.getconstant.php
1198 * @param name string <p>
1199 * Name of the constant.
1200 * </p>
1201 * @return mixed Value of the constant.
1202 */
1203 public function getConstant ($name) {}
1204
1205 /**
1206 * Gets the interfaces
1207 * @link http://www.php.net/manual/en/reflectionclass.getinterfaces.php
1208 * @return array An associative array of interfaces, with keys as interface
1209 * names and the array values as ReflectionClass objects.
1210 */
1211 public function getInterfaces () {}
1212
1213 /**
1214 * Gets the interface names
1215 * @link http://www.php.net/manual/en/reflectionclass.getinterfacenames.php
1216 * @return array A numerical array with interface names as the values.
1217 */
1218 public function getInterfaceNames () {}
1219
1220 /**
1221 * Checks if the class is an interface
1222 * @link http://www.php.net/manual/en/reflectionclass.isinterface.php
1223 * @return bool Returns true on success, false on failure.
1224 */
1225 public function isInterface () {}
1226
1227 /**
1228 * Returns an array of traits used by this class
1229 * @link http://www.php.net/manual/en/reflectionclass.gettraits.php
1230 * @return array an array with trait names in keys and instances of trait's
1231 * ReflectionClass in values.
1232 * Returns &null; in case of an error.
1233 */
1234 public function getTraits () {}
1235
1236 /**
1237 * Returns an array of names of traits used by this class
1238 * @link http://www.php.net/manual/en/reflectionclass.gettraitnames.php
1239 * @return array an array with trait names in values.
1240 * Returns &null; in case of an error.
1241 */
1242 public function getTraitNames () {}
1243
1244 /**
1245 * Returns an array of trait aliases
1246 * @link http://www.php.net/manual/en/reflectionclass.gettraitaliases.php
1247 * @return array an array with new method names in keys and original names (in the
1248 * format "TraitName::original") in values.
1249 * Returns &null; in case of an error.
1250 */
1251 public function getTraitAliases () {}
1252
1253 /**
1254 * Returns whether this is a trait
1255 * @link http://www.php.net/manual/en/reflectionclass.istrait.php
1256 * @return bool true if this is a trait, false otherwise.
1257 * Returns &null; in case of an error.
1258 */
1259 public function isTrait () {}
1260
1261 /**
1262 * Checks if class is abstract
1263 * @link http://www.php.net/manual/en/reflectionclass.isabstract.php
1264 * @return bool Returns true on success, false on failure.
1265 */
1266 public function isAbstract () {}
1267
1268 /**
1269 * Checks if class is final
1270 * @link http://www.php.net/manual/en/reflectionclass.isfinal.php
1271 * @return bool Returns true on success, false on failure.
1272 */
1273 public function isFinal () {}
1274
1275 /**
1276 * Gets modifiers
1277 * @link http://www.php.net/manual/en/reflectionclass.getmodifiers.php
1278 * @return int bitmask of
1279 * modifier constants.
1280 */
1281 public function getModifiers () {}
1282
1283 /**
1284 * Checks class for instance
1285 * @link http://www.php.net/manual/en/reflectionclass.isinstance.php
1286 * @param object object <p>
1287 * The object being compared to.
1288 * </p>
1289 * @return bool Returns true on success, false on failure.
1290 */
1291 public function isInstance ($object) {}
1292
1293 /**
1294 * Creates a new class instance from given arguments.
1295 * @link http://www.php.net/manual/en/reflectionclass.newinstance.php
1296 * @param args mixed <p>
1297 * Accepts a variable number of arguments which are passed to the class
1298 * constructor, much like call_user_func.
1299 * </p>
1300 * @param _ mixed[optional]
1301 * @return object
1302 */
1303 public function newInstance ($args, $_ = null) {}
1304
1305 /**
1306 * Creates a new class instance without invoking the constructor.
1307 * @link http://www.php.net/manual/en/reflectionclass.newinstancewithoutconstructor.php
1308 * @return object
1309 */
1310 public function newInstanceWithoutConstructor () {}
1311
1312 /**
1313 * Creates a new class instance from given arguments.
1314 * @link http://www.php.net/manual/en/reflectionclass.newinstanceargs.php
1315 * @param args array[optional] <p>
1316 * The parameters to be passed to the class constructor as an array.
1317 * </p>
1318 * @return object a new instance of the class.
1319 */
1320 public function newInstanceArgs (array $args = null) {}
1321
1322 /**
1323 * Gets parent class
1324 * @link http://www.php.net/manual/en/reflectionclass.getparentclass.php
1325 * @return object A ReflectionClass.
1326 */
1327 public function getParentClass () {}
1328
1329 /**
1330 * Checks if a subclass
1331 * @link http://www.php.net/manual/en/reflectionclass.issubclassof.php
1332 * @param class string <p>
1333 * The class name being checked against.
1334 * </p>
1335 * @return bool Returns true on success, false on failure.
1336 */
1337 public function isSubclassOf ($class) {}
1338
1339 /**
1340 * Gets static properties
1341 * @link http://www.php.net/manual/en/reflectionclass.getstaticproperties.php
1342 * @return array The static properties, as an array.
1343 */
1344 public function getStaticProperties () {}
1345
1346 /**
1347 * Gets static property value
1348 * @link http://www.php.net/manual/en/reflectionclass.getstaticpropertyvalue.php
1349 * @param name string <p>
1350 * The name of the static property for which to return a value.
1351 * </p>
1352 * @param def_value mixed[optional] <p>
1353 * A default value to return in case the class does not declare a static
1354 * property with the given name. If the property does
1355 * not exist and this argument is omitted, a
1356 * ReflectionException is thrown.
1357 * </p>
1358 * @return mixed The value of the static property.
1359 */
1360 public function getStaticPropertyValue ($name, &$def_value = null) {}
1361
1362 /**
1363 * Sets static property value
1364 * @link http://www.php.net/manual/en/reflectionclass.setstaticpropertyvalue.php
1365 * @param name string <p>
1366 * Property name.
1367 * </p>
1368 * @param value string <p>
1369 * New property value.
1370 * </p>
1371 * @return void
1372 */
1373 public function setStaticPropertyValue ($name, $value) {}
1374
1375 /**
1376 * Gets default properties
1377 * @link http://www.php.net/manual/en/reflectionclass.getdefaultproperties.php
1378 * @return array An array of default properties, with the key being the name of
1379 * the property and the value being the default value of the property or &null;
1380 * if the property doesn't have a default value. The function does not distinguish
1381 * between static and non static properties and does not take visibility modifiers
1382 * into account.
1383 */
1384 public function getDefaultProperties () {}
1385
1386 /**
1387 * Checks if iterateable
1388 * @link http://www.php.net/manual/en/reflectionclass.isiterateable.php
1389 * @return bool Returns true on success, false on failure.
1390 */
1391 public function isIterateable () {}
1392
1393 /**
1394 * Implements interface
1395 * @link http://www.php.net/manual/en/reflectionclass.implementsinterface.php
1396 * @param interface string <p>
1397 * The interface name.
1398 * </p>
1399 * @return bool Returns true on success, false on failure.
1400 */
1401 public function implementsInterface ($interface) {}
1402
1403 /**
1404 * Gets a <classname>ReflectionExtension</classname> object for the extension which defined the class
1405 * @link http://www.php.net/manual/en/reflectionclass.getextension.php
1406 * @return ReflectionExtension A ReflectionExtension object representing the extension which defined the class,
1407 * or &null; for user-defined classes.
1408 */
1409 public function getExtension () {}
1410
1411 /**
1412 * Gets the name of the extension which defined the class
1413 * @link http://www.php.net/manual/en/reflectionclass.getextensionname.php
1414 * @return string The name of the extension which defined the class, or false for user-defined classes.
1415 */
1416 public function getExtensionName () {}
1417
1418 /**
1419 * Checks if in namespace
1420 * @link http://www.php.net/manual/en/reflectionclass.innamespace.php
1421 * @return bool Returns true on success, false on failure.
1422 */
1423 public function inNamespace () {}
1424
1425 /**
1426 * Gets namespace name
1427 * @link http://www.php.net/manual/en/reflectionclass.getnamespacename.php
1428 * @return string The namespace name.
1429 */
1430 public function getNamespaceName () {}
1431
1432 /**
1433 * Gets short name
1434 * @link http://www.php.net/manual/en/reflectionclass.getshortname.php
1435 * @return string The class short name.
1436 */
1437 public function getShortName () {}
1438
1439 }
1440
1441 class ReflectionObject extends ReflectionClass implements Reflector {
1442 const IS_IMPLICIT_ABSTRACT = 16;
1443 const IS_EXPLICIT_ABSTRACT = 32;
1444 const IS_FINAL = 64;
1445
1446 public $name;
1447
1448
1449 /**
1450 * Export
1451 * @link http://www.php.net/manual/en/reflectionobject.export.php
1452 * @param argument string <p>
1453 * &reflection.export.param.name;
1454 * </p>
1455 * @param return bool[optional] <p>
1456 * &reflection.export.param.return;
1457 * </p>
1458 * @return string &reflection.export.return;
1459 */
1460 public static function export ($argument, $return = null) {}
1461
1462 /**
1463 * Constructs a ReflectionObject
1464 * @link http://www.php.net/manual/en/reflectionobject.construct.php
1465 * @param argument
1466 */
1467 public function __construct ($argument) {}
1468
1469 final private function __clone () {}
1470
1471 /**
1472 * Returns the string representation of the ReflectionClass object.
1473 * @link http://www.php.net/manual/en/reflectionclass.tostring.php
1474 * @return string A string representation of this ReflectionClass instance.
1475 */
1476 public function __toString () {}
1477
1478 /**
1479 * Gets class name
1480 * @link http://www.php.net/manual/en/reflectionclass.getname.php
1481 * @return string The class name.
1482 */
1483 public function getName () {}
1484
1485 /**
1486 * Checks if class is defined internally by an extension, or the core
1487 * @link http://www.php.net/manual/en/reflectionclass.isinternal.php
1488 * @return bool Returns true on success, false on failure.
1489 */
1490 public function isInternal () {}
1491
1492 /**
1493 * Checks if user defined
1494 * @link http://www.php.net/manual/en/reflectionclass.isuserdefined.php
1495 * @return bool Returns true on success, false on failure.
1496 */
1497 public function isUserDefined () {}
1498
1499 /**
1500 * Checks if the class is instantiable
1501 * @link http://www.php.net/manual/en/reflectionclass.isinstantiable.php
1502 * @return bool Returns true on success, false on failure.
1503 */
1504 public function isInstantiable () {}
1505
1506 /**
1507 * Returns whether this class is cloneable
1508 * @link http://www.php.net/manual/en/reflectionclass.iscloneable.php
1509 * @return bool true if the class is cloneable, false otherwise.
1510 */
1511 public function isCloneable () {}
1512
1513 /**
1514 * Gets the filename of the file in which the class has been defined
1515 * @link http://www.php.net/manual/en/reflectionclass.getfilename.php
1516 * @return string the filename of the file in which the class has been defined.
1517 * If the class is defined in the PHP core or in a PHP extension, false
1518 * is returned.
1519 */
1520 public function getFileName () {}
1521
1522 /**
1523 * Gets starting line number
1524 * @link http://www.php.net/manual/en/reflectionclass.getstartline.php
1525 * @return int The starting line number, as an integer.
1526 */
1527 public function getStartLine () {}
1528
1529 /**
1530 * Gets end line
1531 * @link http://www.php.net/manual/en/reflectionclass.getendline.php
1532 * @return int The ending line number of the user defined class, or false if unknown.
1533 */
1534 public function getEndLine () {}
1535
1536 /**
1537 * Gets doc comments
1538 * @link http://www.php.net/manual/en/reflectionclass.getdoccomment.php
1539 * @return string The doc comment if it exists, otherwise false
1540 */
1541 public function getDocComment () {}
1542
1543 /**
1544 * Gets the constructor of the class
1545 * @link http://www.php.net/manual/en/reflectionclass.getconstructor.php
1546 * @return ReflectionMethod A ReflectionMethod object reflecting the class' constructor, or &null; if the class
1547 * has no constructor.
1548 */
1549 public function getConstructor () {}
1550
1551 /**
1552 * Checks if method is defined
1553 * @link http://www.php.net/manual/en/reflectionclass.hasmethod.php
1554 * @param name string <p>
1555 * Name of the method being checked for.
1556 * </p>
1557 * @return bool true if it has the method, otherwise false
1558 */
1559 public function hasMethod ($name) {}
1560
1561 /**
1562 * Gets a <classname>ReflectionMethod</classname> for a class method.
1563 * @link http://www.php.net/manual/en/reflectionclass.getmethod.php
1564 * @param name string <p>
1565 * The method name to reflect.
1566 * </p>
1567 * @return ReflectionMethod A ReflectionMethod.
1568 */
1569 public function getMethod ($name) {}
1570
1571 /**
1572 * Gets an array of methods
1573 * @link http://www.php.net/manual/en/reflectionclass.getmethods.php
1574 * @param filter int[optional] <p>
1575 * Filter the results to include only methods with certain attributes. Defaults
1576 * to no filtering.
1577 * </p>
1578 * <p>
1579 * Any combination of ReflectionMethod::IS_STATIC,
1580 * ReflectionMethod::IS_PUBLIC,
1581 * ReflectionMethod::IS_PROTECTED,
1582 * ReflectionMethod::IS_PRIVATE,
1583 * ReflectionMethod::IS_ABSTRACT,
1584 * ReflectionMethod::IS_FINAL.
1585 * </p>
1586 * @return array An array of ReflectionMethod objects
1587 * reflecting each method.
1588 */
1589 public function getMethods ($filter = null) {}
1590
1591 /**
1592 * Checks if property is defined
1593 * @link http://www.php.net/manual/en/reflectionclass.hasproperty.php
1594 * @param name string <p>
1595 * Name of the property being checked for.
1596 * </p>
1597 * @return bool true if it has the property, otherwise false
1598 */
1599 public function hasProperty ($name) {}
1600
1601 /**
1602 * Gets a <classname>ReflectionProperty</classname> for a class's property
1603 * @link http://www.php.net/manual/en/reflectionclass.getproperty.php
1604 * @param name string <p>
1605 * The property name.
1606 * </p>
1607 * @return ReflectionProperty A ReflectionProperty.
1608 */
1609 public function getProperty ($name) {}
1610
1611 /**
1612 * Gets properties
1613 * @link http://www.php.net/manual/en/reflectionclass.getproperties.php
1614 * @param filter int[optional] <p>
1615 * The optional filter, for filtering desired property types. It's configured using
1616 * the ReflectionProperty constants,
1617 * and defaults to all property types.
1618 * </p>
1619 * @return array An array of ReflectionProperty objects.
1620 */
1621 public function getProperties ($filter = null) {}
1622
1623 /**
1624 * Checks if constant is defined
1625 * @link http://www.php.net/manual/en/reflectionclass.hasconstant.php
1626 * @param name string <p>
1627 * The name of the constant being checked for.
1628 * </p>
1629 * @return bool true if the constant is defined, otherwise false.
1630 */
1631 public function hasConstant ($name) {}
1632
1633 /**
1634 * Gets constants
1635 * @link http://www.php.net/manual/en/reflectionclass.getconstants.php
1636 * @return array An array of constants.
1637 * Constant name in key, constant value in value.
1638 */
1639 public function getConstants () {}
1640
1641 /**
1642 * Gets defined constant
1643 * @link http://www.php.net/manual/en/reflectionclass.getconstant.php
1644 * @param name string <p>
1645 * Name of the constant.
1646 * </p>
1647 * @return mixed Value of the constant.
1648 */
1649 public function getConstant ($name) {}
1650
1651 /**
1652 * Gets the interfaces
1653 * @link http://www.php.net/manual/en/reflectionclass.getinterfaces.php
1654 * @return array An associative array of interfaces, with keys as interface
1655 * names and the array values as ReflectionClass objects.
1656 */
1657 public function getInterfaces () {}
1658
1659 /**
1660 * Gets the interface names
1661 * @link http://www.php.net/manual/en/reflectionclass.getinterfacenames.php
1662 * @return array A numerical array with interface names as the values.
1663 */
1664 public function getInterfaceNames () {}
1665
1666 /**
1667 * Checks if the class is an interface
1668 * @link http://www.php.net/manual/en/reflectionclass.isinterface.php
1669 * @return bool Returns true on success, false on failure.
1670 */
1671 public function isInterface () {}
1672
1673 /**
1674 * Returns an array of traits used by this class
1675 * @link http://www.php.net/manual/en/reflectionclass.gettraits.php
1676 * @return array an array with trait names in keys and instances of trait's
1677 * ReflectionClass in values.
1678 * Returns &null; in case of an error.
1679 */
1680 public function getTraits () {}
1681
1682 /**
1683 * Returns an array of names of traits used by this class
1684 * @link http://www.php.net/manual/en/reflectionclass.gettraitnames.php
1685 * @return array an array with trait names in values.
1686 * Returns &null; in case of an error.
1687 */
1688 public function getTraitNames () {}
1689
1690 /**
1691 * Returns an array of trait aliases
1692 * @link http://www.php.net/manual/en/reflectionclass.gettraitaliases.php
1693 * @return array an array with new method names in keys and original names (in the
1694 * format "TraitName::original") in values.
1695 * Returns &null; in case of an error.
1696 */
1697 public function getTraitAliases () {}
1698
1699 /**
1700 * Returns whether this is a trait
1701 * @link http://www.php.net/manual/en/reflectionclass.istrait.php
1702 * @return bool true if this is a trait, false otherwise.
1703 * Returns &null; in case of an error.
1704 */
1705 public function isTrait () {}
1706
1707 /**
1708 * Checks if class is abstract
1709 * @link http://www.php.net/manual/en/reflectionclass.isabstract.php
1710 * @return bool Returns true on success, false on failure.
1711 */
1712 public function isAbstract () {}
1713
1714 /**
1715 * Checks if class is final
1716 * @link http://www.php.net/manual/en/reflectionclass.isfinal.php
1717 * @return bool Returns true on success, false on failure.
1718 */
1719 public function isFinal () {}
1720
1721 /**
1722 * Gets modifiers
1723 * @link http://www.php.net/manual/en/reflectionclass.getmodifiers.php
1724 * @return int bitmask of
1725 * modifier constants.
1726 */
1727 public function getModifiers () {}
1728
1729 /**
1730 * Checks class for instance
1731 * @link http://www.php.net/manual/en/reflectionclass.isinstance.php
1732 * @param object object <p>
1733 * The object being compared to.
1734 * </p>
1735 * @return bool Returns true on success, false on failure.
1736 */
1737 public function isInstance ($object) {}
1738
1739 /**
1740 * Creates a new class instance from given arguments.
1741 * @link http://www.php.net/manual/en/reflectionclass.newinstance.php
1742 * @param args mixed <p>
1743 * Accepts a variable number of arguments which are passed to the class
1744 * constructor, much like call_user_func.
1745 * </p>
1746 * @param _ mixed[optional]
1747 * @return object
1748 */
1749 public function newInstance ($args, $_ = null) {}
1750
1751 /**
1752 * Creates a new class instance without invoking the constructor.
1753 * @link http://www.php.net/manual/en/reflectionclass.newinstancewithoutconstructor.php
1754 * @return object
1755 */
1756 public function newInstanceWithoutConstructor () {}
1757
1758 /**
1759 * Creates a new class instance from given arguments.
1760 * @link http://www.php.net/manual/en/reflectionclass.newinstanceargs.php
1761 * @param args array[optional] <p>
1762 * The parameters to be passed to the class constructor as an array.
1763 * </p>
1764 * @return object a new instance of the class.
1765 */
1766 public function newInstanceArgs (array $args = null) {}
1767
1768 /**
1769 * Gets parent class
1770 * @link http://www.php.net/manual/en/reflectionclass.getparentclass.php
1771 * @return object A ReflectionClass.
1772 */
1773 public function getParentClass () {}
1774
1775 /**
1776 * Checks if a subclass
1777 * @link http://www.php.net/manual/en/reflectionclass.issubclassof.php
1778 * @param class string <p>
1779 * The class name being checked against.
1780 * </p>
1781 * @return bool Returns true on success, false on failure.
1782 */
1783 public function isSubclassOf ($class) {}
1784
1785 /**
1786 * Gets static properties
1787 * @link http://www.php.net/manual/en/reflectionclass.getstaticproperties.php
1788 * @return array The static properties, as an array.
1789 */
1790 public function getStaticProperties () {}
1791
1792 /**
1793 * Gets static property value
1794 * @link http://www.php.net/manual/en/reflectionclass.getstaticpropertyvalue.php
1795 * @param name string <p>
1796 * The name of the static property for which to return a value.
1797 * </p>
1798 * @param def_value mixed[optional] <p>
1799 * A default value to return in case the class does not declare a static
1800 * property with the given name. If the property does
1801 * not exist and this argument is omitted, a
1802 * ReflectionException is thrown.
1803 * </p>
1804 * @return mixed The value of the static property.
1805 */
1806 public function getStaticPropertyValue ($name, &$def_value = null) {}
1807
1808 /**
1809 * Sets static property value
1810 * @link http://www.php.net/manual/en/reflectionclass.setstaticpropertyvalue.php
1811 * @param name string <p>
1812 * Property name.
1813 * </p>
1814 * @param value string <p>
1815 * New property value.
1816 * </p>
1817 * @return void
1818 */
1819 public function setStaticPropertyValue ($name, $value) {}
1820
1821 /**
1822 * Gets default properties
1823 * @link http://www.php.net/manual/en/reflectionclass.getdefaultproperties.php
1824 * @return array An array of default properties, with the key being the name of
1825 * the property and the value being the default value of the property or &null;
1826 * if the property doesn't have a default value. The function does not distinguish
1827 * between static and non static properties and does not take visibility modifiers
1828 * into account.
1829 */
1830 public function getDefaultProperties () {}
1831
1832 /**
1833 * Checks if iterateable
1834 * @link http://www.php.net/manual/en/reflectionclass.isiterateable.php
1835 * @return bool Returns true on success, false on failure.
1836 */
1837 public function isIterateable () {}
1838
1839 /**
1840 * Implements interface
1841 * @link http://www.php.net/manual/en/reflectionclass.implementsinterface.php
1842 * @param interface string <p>
1843 * The interface name.
1844 * </p>
1845 * @return bool Returns true on success, false on failure.
1846 */
1847 public function implementsInterface ($interface) {}
1848
1849 /**
1850 * Gets a <classname>ReflectionExtension</classname> object for the extension which defined the class
1851 * @link http://www.php.net/manual/en/reflectionclass.getextension.php
1852 * @return ReflectionExtension A ReflectionExtension object representing the extension which defined the class,
1853 * or &null; for user-defined classes.
1854 */
1855 public function getExtension () {}
1856
1857 /**
1858 * Gets the name of the extension which defined the class
1859 * @link http://www.php.net/manual/en/reflectionclass.getextensionname.php
1860 * @return string The name of the extension which defined the class, or false for user-defined classes.
1861 */
1862 public function getExtensionName () {}
1863
1864 /**
1865 * Checks if in namespace
1866 * @link http://www.php.net/manual/en/reflectionclass.innamespace.php
1867 * @return bool Returns true on success, false on failure.
1868 */
1869 public function inNamespace () {}
1870
1871 /**
1872 * Gets namespace name
1873 * @link http://www.php.net/manual/en/reflectionclass.getnamespacename.php
1874 * @return string The namespace name.
1875 */
1876 public function getNamespaceName () {}
1877
1878 /**
1879 * Gets short name
1880 * @link http://www.php.net/manual/en/reflectionclass.getshortname.php
1881 * @return string The class short name.
1882 */
1883 public function getShortName () {}
1884
1885 }
1886
1887 class ReflectionProperty implements Reflector {
1888 const IS_STATIC = 1;
1889 const IS_PUBLIC = 256;
1890 const IS_PROTECTED = 512;
1891 const IS_PRIVATE = 1024;
1892
1893 public $name;
1894 public $class;
1895
1896
1897 /**
1898 * Clone
1899 * @link http://www.php.net/manual/en/reflectionproperty.clone.php
1900 * @return void
1901 */
1902 final private function __clone () {}
1903
1904 /**
1905 * Export
1906 * @link http://www.php.net/manual/en/reflectionproperty.export.php
1907 * @param class mixed
1908 * @param name string <p>
1909 * The property name.
1910 * </p>
1911 * @param return bool[optional] <p>
1912 * &reflection.export.param.return;
1913 * </p>
1914 * @return string
1915 */
1916 public static function export ($class, $name, $return = null) {}
1917
1918 /**
1919 * Construct a ReflectionProperty object
1920 * @link http://www.php.net/manual/en/reflectionproperty.construct.php
1921 * @param class
1922 * @param name
1923 */
1924 public function __construct ($class, $name) {}
1925
1926 /**
1927 * To string
1928 * @link http://www.php.net/manual/en/reflectionproperty.tostring.php
1929 * @return string
1930 */
1931 public function __toString () {}
1932
1933 /**
1934 * Gets property name
1935 * @link http://www.php.net/manual/en/reflectionproperty.getname.php
1936 * @return string The name of the reflected property.
1937 */
1938 public function getName () {}
1939
1940 /**
1941 * Gets value
1942 * @link http://www.php.net/manual/en/reflectionproperty.getvalue.php
1943 * @param object object[optional] <p>
1944 * If the property is non-static an object must be provided to fetch the
1945 * property from. If you want to fetch the default property without
1946 * providing an object use ReflectionClass::getDefaultProperties
1947 * instead.
1948 * </p>
1949 * @return mixed The current value of the property.
1950 */
1951 public function getValue ($object = null) {}
1952
1953 /**
1954 * Set property value
1955 * @link http://www.php.net/manual/en/reflectionproperty.setvalue.php
1956 * @param object object <p>
1957 * If the property is non-static an object must be provided to change
1958 * the property on. If the property is static this parameter is left
1959 * out and only value needs to be provided.
1960 * </p>
1961 * @param value mixed <p>
1962 * The new value.
1963 * </p>
1964 * @return void
1965 */
1966 public function setValue ($object, $value) {}
1967
1968 /**
1969 * Checks if property is public
1970 * @link http://www.php.net/manual/en/reflectionproperty.ispublic.php
1971 * @return bool true if the property is public, false otherwise.
1972 */
1973 public function isPublic () {}
1974
1975 /**
1976 * Checks if property is private
1977 * @link http://www.php.net/manual/en/reflectionproperty.isprivate.php
1978 * @return bool true if the property is private, false otherwise.
1979 */
1980 public function isPrivate () {}
1981
1982 /**
1983 * Checks if property is protected
1984 * @link http://www.php.net/manual/en/reflectionproperty.isprotected.php
1985 * @return bool true if the property is protected, false otherwise.
1986 */
1987 public function isProtected () {}
1988
1989 /**
1990 * Checks if property is static
1991 * @link http://www.php.net/manual/en/reflectionproperty.isstatic.php
1992 * @return bool true if the property is static, false otherwise.
1993 */
1994 public function isStatic () {}
1995
1996 /**
1997 * Checks if default value
1998 * @link http://www.php.net/manual/en/reflectionproperty.isdefault.php
1999 * @return bool true if the property was declared at compile-time, or false if
2000 * it was created at run-time.
2001 */
2002 public function isDefault () {}
2003
2004 /**
2005 * Gets modifiers
2006 * @link http://www.php.net/manual/en/reflectionproperty.getmodifiers.php
2007 * @return int A numeric representation of the modifiers.
2008 */
2009 public function getModifiers () {}
2010
2011 /**
2012 * Gets declaring class
2013 * @link http://www.php.net/manual/en/reflectionproperty.getdeclaringclass.php
2014 * @return ReflectionClass A ReflectionClass object.
2015 */
2016 public function getDeclaringClass () {}
2017
2018 /**
2019 * Gets doc comment
2020 * @link http://www.php.net/manual/en/reflectionproperty.getdoccomment.php
2021 * @return string The doc comment.
2022 */
2023 public function getDocComment () {}
2024
2025 /**
2026 * Set property accessibility
2027 * @link http://www.php.net/manual/en/reflectionproperty.setaccessible.php
2028 * @param accessible bool <p>
2029 * true to allow accessibility, or false.
2030 * </p>
2031 * @return void
2032 */
2033 public function setAccessible ($accessible) {}
2034
2035 }
2036
2037 class ReflectionExtension implements Reflector {
2038 public $name;
2039
2040
2041 /**
2042 * Clones
2043 * @link http://www.php.net/manual/en/reflectionextension.clone.php
2044 * @return void No value is returned, if called a fatal error will occur.
2045 */
2046 final private function __clone () {}
2047
2048 /**
2049 * Export
2050 * @link http://www.php.net/manual/en/reflectionextension.export.php
2051 * @param name string <p>
2052 * &reflection.export.param.name;
2053 * </p>
2054 * @param return string[optional] <p>
2055 * &reflection.export.param.return;
2056 * </p>
2057 * @return string &reflection.export.return;
2058 */
2059 public static function export ($name, $return = null) {}
2060
2061 /**
2062 * Constructs a ReflectionExtension
2063 * @link http://www.php.net/manual/en/reflectionextension.construct.php
2064 * @param name
2065 */
2066 public function __construct ($name) {}
2067
2068 /**
2069 * To string
2070 * @link http://www.php.net/manual/en/reflectionextension.tostring.php
2071 * @return string the exported extension as a string, in the same way as the
2072 * ReflectionExtension::export.
2073 */
2074 public function __toString () {}
2075
2076 /**
2077 * Gets extension name
2078 * @link http://www.php.net/manual/en/reflectionextension.getname.php
2079 * @return string The extensions name.
2080 */
2081 public function getName () {}
2082
2083 /**
2084 * Gets extension version
2085 * @link http://www.php.net/manual/en/reflectionextension.getversion.php
2086 * @return string The version of the extension.
2087 */
2088 public function getVersion () {}
2089
2090 /**
2091 * Gets extension functions
2092 * @link http://www.php.net/manual/en/reflectionextension.getfunctions.php
2093 * @return array An associative array of ReflectionFunction objects,
2094 * for each function defined in the extension with the keys being the function
2095 * names. If no function are defined, an empty array is returned.
2096 */
2097 public function getFunctions () {}
2098
2099 /**
2100 * Gets constants
2101 * @link http://www.php.net/manual/en/reflectionextension.getconstants.php
2102 * @return array An associative array with constant names as keys.
2103 */
2104 public function getConstants () {}
2105
2106 /**
2107 * Gets extension ini entries
2108 * @link http://www.php.net/manual/en/reflectionextension.getinientries.php
2109 * @return array An associative array with the ini entries as keys,
2110 * with their defined values as values.
2111 */
2112 public function getINIEntries () {}
2113
2114 /**
2115 * Gets classes
2116 * @link http://www.php.net/manual/en/reflectionextension.getclasses.php
2117 * @return array An array of ReflectionClass objects, one
2118 * for each class within the extension. If no classes are defined,
2119 * an empty array is returned.
2120 */
2121 public function getClasses () {}
2122
2123 /**
2124 * Gets class names
2125 * @link http://www.php.net/manual/en/reflectionextension.getclassnames.php
2126 * @return array An array of class names, as defined in the extension.
2127 * If no classes are defined, an empty array is returned.
2128 */
2129 public function getClassNames () {}
2130
2131 /**
2132 * Gets dependencies
2133 * @link http://www.php.net/manual/en/reflectionextension.getdependencies.php
2134 * @return array An associative array with dependencies as keys and
2135 * either Required, Optional
2136 * or Conflicts as the values.
2137 */
2138 public function getDependencies () {}
2139
2140 /**
2141 * Print extension info
2142 * @link http://www.php.net/manual/en/reflectionextension.info.php
2143 * @return void Information about the extension.
2144 */
2145 public function info () {}
2146
2147 /**
2148 * Returns whether this extension is persistent
2149 * @link http://www.php.net/manual/en/reflectionextension.ispersistent.php
2150 * @return void true for extensions loaded by extension, false
2151 * otherwise.
2152 */
2153 public function isPersistent () {}
2154
2155 /**
2156 * Returns whether this extension is temporary
2157 * @link http://www.php.net/manual/en/reflectionextension.istemporary.php
2158 * @return void true for extensions loaded by dl,
2159 * false otherwise.
2160 */
2161 public function isTemporary () {}
2162
2163 }
2164
2165 class ReflectionZendExtension implements Reflector {
2166 public $name;
2167
2168
2169 /**
2170 * Clone handler
2171 * @link http://www.php.net/manual/en/reflectionzendextension.clone.php
2172 * @return void
2173 */
2174 final private function __clone () {}
2175
2176 /**
2177 * Export
2178 * @link http://www.php.net/manual/en/reflectionzendextension.export.php
2179 * @param name string <p>
2180 *
2181 * </p>
2182 * @param return string[optional] <p>
2183 *
2184 * </p>
2185 * @return string
2186 */
2187 public static function export ($name, $return = null) {}
2188
2189 /**
2190 * Constructor
2191 * @link http://www.php.net/manual/en/reflectionzendextension.construct.php
2192 * @param name
2193 */
2194 public function __construct ($name) {}
2195
2196 /**
2197 * To string handler
2198 * @link http://www.php.net/manual/en/reflectionzendextension.tostring.php
2199 * @return string
2200 */
2201 public function __toString () {}
2202
2203 /**
2204 * Gets name
2205 * @link http://www.php.net/manual/en/reflectionzendextension.getname.php
2206 * @return string
2207 */
2208 public function getName () {}
2209
2210 /**
2211 * Gets version
2212 * @link http://www.php.net/manual/en/reflectionzendextension.getversion.php
2213 * @return string
2214 */
2215 public function getVersion () {}
2216
2217 /**
2218 * Gets author
2219 * @link http://www.php.net/manual/en/reflectionzendextension.getauthor.php
2220 * @return string
2221 */
2222 public function getAuthor () {}
2223
2224 /**
2225 * Gets URL
2226 * @link http://www.php.net/manual/en/reflectionzendextension.geturl.php
2227 * @return string
2228 */
2229 public function getURL () {}
2230
2231 /**
2232 * Gets copyright
2233 * @link http://www.php.net/manual/en/reflectionzendextension.getcopyright.php
2234 * @return string
2235 */
2236 public function getCopyright () {}
2237
2238 }
2239 // End of Reflection v.$Id: 8e5fcadef43ea0f77c7886557613923e30b979dd $
2240 ?>