forked from JetBrains/phpstorm-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReflection.php
1966 lines (1747 loc) · 53.8 KB
/
Reflection.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
// Start of Reflection v.$Revision: 307971 $
/**
* The ReflectionException class.
* @link http://php.net/manual/en/class.reflectionexception.php
*/
class ReflectionException extends Exception {
}
/**
* The reflection class.
* @link http://php.net/manual/en/class.reflection.php
*/
class Reflection {
/**
* Gets modifier names
* @link http://php.net/manual/en/reflection.getmodifiernames.php
* @param int $modifiers <p>
* The modifiers to get, which is from a numeric value.
* </p>
* @return array An array of modifier names.
* @since 5.0
*/
public static function getModifierNames ($modifiers) {}
/**
* Exports
* @link http://php.net/manual/en/reflection.export.php
* @param Reflector $reflector <p>
* The reflection to export.
* </p>
* @param bool $return [optional] <p>
* Setting to <b>TRUE</b> will return the export,
* as opposed to emitting it. Setting to <b>FALSE</b> (the default) will do the opposite.
* </p>
* @return string If the <i>return</i> parameter
* is set to <b>TRUE</b>, then the export is returned as a string,
* otherwise <b>NULL</b> is returned.
* @since 5.0
*/
public static function export (Reflector $reflector, $return = false) {}
}
/**
* <b>Reflector</b> is an interface implemented by all
* exportable Reflection classes.
* @link http://php.net/manual/en/class.reflector.php
*/
interface Reflector {
/**
* Exports
* @link http://php.net/manual/en/reflector.export.php
* @return string
* @since 5.0
*/
static function export ();
/**
* To string
* @link http://php.net/manual/en/reflector.tostring.php
* @return string
* @since 5.0
*/
function __toString ();
}
/**
* A parent class to <b>ReflectionFunction</b>, read its
* description for details.
* @link http://php.net/manual/en/class.reflectionfunctionabstract.php
*/
abstract class ReflectionFunctionAbstract implements Reflector {
public $name;
/**
* Clones function
* @link http://php.net/manual/en/reflectionfunctionabstract.clone.php
* @return void
* @since 5.0
*/
final private function __clone () {}
/**
* To string
* @link http://php.net/manual/en/reflectionfunctionabstract.tostring.php
* @return string.
* @since 5.0
*/
abstract public function __toString ();
/**
* Checks if function in namespace
* @link http://php.net/manual/en/reflectionfunctionabstract.innamespace.php
* @return bool <b>TRUE</b> if it's in a namespace, otherwise <b>FALSE</b>
* @since 5.3.0
*/
public function inNamespace () {}
/**
* Checks if closure
* @link http://php.net/manual/en/reflectionfunctionabstract.isclosure.php
* @return bool <b>TRUE</b> if it's a closure, otherwise <b>FALSE</b>
* @since 5.3.0
*/
public function isClosure () {}
/**
* Checks if deprecated
* @link http://php.net/manual/en/reflectionfunctionabstract.isdeprecated.php
* @return bool <b>TRUE</b> if it's deprecated, otherwise <b>FALSE</b>
* @since 5.0
*/
public function isDeprecated () {}
/**
* Checks if is internal
* @link http://php.net/manual/en/reflectionfunctionabstract.isinternal.php
* @return bool <b>TRUE</b> if it's internal, otherwise <b>FALSE</b>
* @since 5.0
*/
public function isInternal () {}
/**
* Checks if user defined
* @link http://php.net/manual/en/reflectionfunctionabstract.isuserdefined.php
* @return bool <b>TRUE</b> if it's user-defined, otherwise false;
* @since 5.0
*/
public function isUserDefined () {}
/**
* Returns this pointer bound to closure
* @link http://php.net/manual/en/reflectionfunctionabstract.getclosurethis.php
* @return object $this pointer.
* Returns <b>NULL</b> in case of an error.
* @since 5.0
*/
public function getClosureThis () {}
/**
* Returns the scope associated to the closure
* @link http://php.net/manual/en/reflectionfunctionabstract.getclosurescopeclass.php
* @return ReflectionClass Returns the class on success.
* Returns <b>NULL</b> on failure.
* @since 5.4.0
*/
public function getClosureScopeClass () {}
/**
* Gets doc comment
* @link http://php.net/manual/en/reflectionfunctionabstract.getdoccomment.php
* @return string The doc comment if it exists, otherwise <b>FALSE</b>
* @since 5.1.0
*/
public function getDocComment () {}
/**
* Gets end line number
* @link http://php.net/manual/en/reflectionfunctionabstract.getendline.php
* @return int The ending line number of the user defined function, or <b>FALSE</b> if unknown.
* @since 5.0
*/
public function getEndLine () {}
/**
* Gets extension info
* @link http://php.net/manual/en/reflectionfunctionabstract.getextension.php
* @return ReflectionExtension The extension information, as a <b>ReflectionExtension</b> object.
* @since 5.0
*/
public function getExtension () {}
/**
* Gets extension name
* @link http://php.net/manual/en/reflectionfunctionabstract.getextensionname.php
* @return string The extensions name.
* @since 5.0
*/
public function getExtensionName () {}
/**
* Gets file name
* @link http://php.net/manual/en/reflectionfunctionabstract.getfilename.php
* @return string The file name.
* @since 5.0
*/
public function getFileName () {}
/**
* Gets function name
* @link http://php.net/manual/en/reflectionfunctionabstract.getname.php
* @return string The name of the function.
* @since 5.0
*/
public function getName () {}
/**
* Gets namespace name
* @link http://php.net/manual/en/reflectionfunctionabstract.getnamespacename.php
* @return string The namespace name.
* @since 5.3.0
*/
public function getNamespaceName () {}
/**
* Gets number of parameters
* @link http://php.net/manual/en/reflectionfunctionabstract.getnumberofparameters.php
* @return int The number of parameters.
* @since 5.0.3
*/
public function getNumberOfParameters () {}
/**
* Gets number of required parameters
* @link http://php.net/manual/en/reflectionfunctionabstract.getnumberofrequiredparameters.php
* @return int The number of required parameters.
* @since 5.0.3
*/
public function getNumberOfRequiredParameters () {}
/**
* Gets parameters
* @link http://php.net/manual/en/reflectionfunctionabstract.getparameters.php
* @return ReflectionParameter[] The parameters, as a ReflectionParameter objects.
* @since 5.0
*/
public function getParameters () {}
/**
* Gets the specified return type of a function
* @link http://php.net/manual/en/reflectionfunctionabstract.getreturntype.php
* @return ReflectionType|NULL Returns a ReflectionType object if a return type is specified, NULL otherwise.
* @since 7.0
*/
public function getReturnType () {}
/**
* Gets function short name
* @link http://php.net/manual/en/reflectionfunctionabstract.getshortname.php
* @return string The short name of the function.
* @since 5.3.0
*/
public function getShortName () {}
/**
* Gets starting line number
* @link http://php.net/manual/en/reflectionfunctionabstract.getstartline.php
* @return int The starting line number.
* @since 5.0
*/
public function getStartLine () {}
/**
* Gets static variables
* @link http://php.net/manual/en/reflectionfunctionabstract.getstaticvariables.php
* @return array An array of static variables.
* @since 5.0
*/
public function getStaticVariables () {}
/**
* Checks if returns reference
* @link http://php.net/manual/en/reflectionfunctionabstract.returnsreference.php
* @return bool <b>TRUE</b> if it returns a reference, otherwise <b>FALSE</b>
* @since 5.0
*/
public function returnsReference () {}
/**
* Returns whether this function is a generator
* @link http://php.net/manual/en/reflectionfunctionabstract.isgenerator.php
* @return bool <b>TRUE</b> if the function is generator, otherwise <b>FALSE</b>
* @since 5.5.0
*/
public function isGenerator() {}
/**
* Returns whether this function is variadic
* @link http://php.net/manual/en/reflectionfunctionabstract.isvariadic.php
* @return bool <b>TRUE</b> if the function is variadic, otherwise <b>FALSE</b>
* @since 5.6.0
*/
public function isVariadic() {}
}
/**
* The <b>ReflectionFunction</b> class reports
* information about a function.
* @link http://php.net/manual/en/class.reflectionfunction.php
*/
class ReflectionFunction extends ReflectionFunctionAbstract implements Reflector {
const IS_DEPRECATED = 262144;
public $name;
/**
* Constructs a ReflectionFunction object
* @link http://php.net/manual/en/reflectionfunction.construct.php
* @param mixed $name <p>
* The name of the function to reflect or a closure.
* </p>
* @since 5.0
*/
public function __construct ($name) {}
/**
* To string
* @link http://php.net/manual/en/reflectionfunction.tostring.php
* @return string <b>ReflectionFunction::export</b>-like output for
* the function.
* @since 5.0
*/
public function __toString () {}
/**
* Exports function
* @link http://php.net/manual/en/reflectionfunction.export.php
* @param string $name <p>
* The reflection to export.
* </p>
* @param string $return [optional] <p>
* Setting to <b>TRUE</b> will return the export,
* as opposed to emitting it. Setting to <b>FALSE</b> (the default) will do the opposite.
* </p>
* @return string If the <i>return</i> parameter
* is set to <b>TRUE</b>, then the export is returned as a string,
* otherwise <b>NULL</b> is returned.
* @since 5.0
*/
public static function export ($name, $return = null) {}
/**
* Checks if function is disabled
* @link http://php.net/manual/en/reflectionfunction.isdisabled.php
* @return bool <b>TRUE</b> if it's disable, otherwise <b>FALSE</b>
* @since 5.0
*/
public function isDisabled () {}
/**
* Invokes function
* @link http://php.net/manual/en/reflectionfunction.invoke.php
* @param string $args [optional] <p>
* The passed in argument list. It accepts a variable number of
* arguments which are passed to the function much like
* call_user_func is.
* </p>
* @return mixed
* @since 5.0
*/
public function invoke ($args = null) {}
/**
* Invokes function args
* @link http://php.net/manual/en/reflectionfunction.invokeargs.php
* @param array $args <p>
* The passed arguments to the function as an array, much like
* <b>call_user_func_array</b> works.
* </p>
* @return mixed the result of the invoked function
* @since 5.1.0
*/
public function invokeArgs (array $args) {}
/**
* Returns a dynamically created closure for the function
* @link http://php.net/manual/en/reflectionfunction.getclosure.php
* @return Closure <b>Closure</b>.
* Returns <b>NULL</b> in case of an error.
* @since 5.0
*/
public function getClosure () {}
}
/**
* The <b>ReflectionParameter</b> class retrieves
* information about function's or method's parameters.
* @link http://php.net/manual/en/class.reflectionparameter.php
*/
class ReflectionParameter implements Reflector {
public $name;
/**
* Clone
* @link http://php.net/manual/en/reflectionparameter.clone.php
* @return void
* @since 5.0
*/
final private function __clone () {}
/**
* Exports
* @link http://php.net/manual/en/reflectionparameter.export.php
* @param string $function <p>
* The function name.
* </p>
* @param string $parameter <p>
* The parameter name.
* </p>
* @param bool $return [optional] <p>
* Setting to <b>TRUE</b> will return the export,
* as opposed to emitting it. Setting to <b>FALSE</b> (the default) will do the opposite.
* </p>
* @return string The exported reflection.
* @since 5.0
*/
public static function export ($function, $parameter, $return = null) {}
/**
* Construct
* @link http://php.net/manual/en/reflectionparameter.construct.php
* @param string $function <p>
* The function to reflect parameters from.
* </p>
* @param string $parameter <p>
* The parameter.
* </p>
* @since 5.0
*/
public function __construct ($function, $parameter) {}
/**
* To string
* @link http://php.net/manual/en/reflectionparameter.tostring.php
* @return string
* @since 5.0
*/
public function __toString () {}
/**
* Gets parameter name
* @link http://php.net/manual/en/reflectionparameter.getname.php
* @return string The name of the reflected parameter.
* @since 5.0
*/
public function getName () {}
/**
* Gets a parameter's type
* @link http://php.net/manual/en/reflectionparameter.gettype.php
* @return ReflectionType|NULL Returns a ReflectionType object if a parameter type is specified, NULL otherwise.
* @since 7.0
*/
public function getType() {}
/**
* Checks if the parameter has a type associated with it.
* @link http://php.net/manual/en/reflectionparameter.hastype.php
* @return bool TRUE if a type is specified, FALSE otherwise.
* @since 7.0
*/
public function hasType () {}
/**
* Checks if passed by reference
* @link http://php.net/manual/en/reflectionparameter.ispassedbyreference.php
* @return bool <b>TRUE</b> if the parameter is passed in by reference, otherwise <b>FALSE</b>
* @since 5.0
*/
public function isPassedByReference () {}
/**
* Returns whether this parameter can be passed by value
* @link http://php.net/manual/en/reflectionparameter.canbepassedbyvalue.php
* @return bool <b>TRUE</b> if the parameter can be passed by value, <b>FALSE</b> otherwise.
* Returns <b>NULL</b> in case of an error.
* @since 5.4.0
*/
public function canBePassedByValue () {}
/**
* Gets declaring function
* @link http://php.net/manual/en/reflectionparameter.getdeclaringfunction.php
* @return ReflectionFunctionAbstract A <b>ReflectionFunctionAbstract</b> object.
* @since 5.2.3
*/
public function getDeclaringFunction () {}
/**
* Gets declaring class
* @link http://php.net/manual/en/reflectionparameter.getdeclaringclass.php
* @return ReflectionClass A <b>ReflectionClass</b> object.
* @since 5.0
*/
public function getDeclaringClass () {}
/**
* Get class
* @link http://php.net/manual/en/reflectionparameter.getclass.php
* @return ReflectionClass A <b>ReflectionClass</b> object.
* @since 5.0
*/
public function getClass () {}
/**
* Checks if parameter expects an array
* @link http://php.net/manual/en/reflectionparameter.isarray.php
* @return bool <b>TRUE</b> if an array is expected, <b>FALSE</b> otherwise.
* @since 5.1.0
*/
public function isArray () {}
/**
* Returns whether parameter MUST be callable
* @link http://php.net/manual/en/reflectionparameter.iscallable.php
* @return bool Returns TRUE if the parameter is callable, FALSE if it is not or NULL on failure.
* @since 5.4.0
*/
public function isCallable () {}
/**
* Checks if null is allowed
* @link http://php.net/manual/en/reflectionparameter.allowsnull.php
* @return bool <b>TRUE</b> if <b>NULL</b> is allowed, otherwise <b>FALSE</b>
* @since 5.0
*/
public function allowsNull () {}
/**
* Gets parameter position
* @link http://php.net/manual/en/reflectionparameter.getposition.php
* @return int The position of the parameter, left to right, starting at position #0.
* @since 5.2.3
*/
public function getPosition () {}
/**
* Checks if optional
* @link http://php.net/manual/en/reflectionparameter.isoptional.php
* @return bool <b>TRUE</b> if the parameter is optional, otherwise <b>FALSE</b>
* @since 5.0.3
*/
public function isOptional () {}
/**
* Checks if a default value is available
* @link http://php.net/manual/en/reflectionparameter.isdefaultvalueavailable.php
* @return bool <b>TRUE</b> if a default value is available, otherwise <b>FALSE</b>
* @since 5.0.3
*/
public function isDefaultValueAvailable () {}
/**
* Gets default parameter value
* @link http://php.net/manual/en/reflectionparameter.getdefaultvalue.php
* @return mixed The parameters default value.
* @since 5.0.3
*/
public function getDefaultValue () {}
/**
* Returns whether the default value of this parameter is constant
* @return boolean
* @since 5.4.6
*/
public function isDefaultValueConstant () {}
/**
* Returns the default value's constant name if default value is constant or null
* @return string
* @since 5.4.6
*/
public function getDefaultValueConstantName () {}
/**
* Returns whether this function is variadic
* @link http://php.net/manual/en/reflectionparameter.isvariadic.php
* @return bool <b>TRUE</b> if the function is variadic, otherwise <b>FALSE</b>
* @since 5.6.0
*/
public function isVariadic() {}
}
/**
* The <b>ReflectionMethod</b> class reports
* information about a method.
* @link http://php.net/manual/en/class.reflectionmethod.php
*/
class ReflectionMethod extends ReflectionFunctionAbstract implements Reflector {
const IS_STATIC = 1;
const IS_PUBLIC = 256;
const IS_PROTECTED = 512;
const IS_PRIVATE = 1024;
const IS_ABSTRACT = 2;
const IS_FINAL = 4;
public $name;
public $class;
/**
* Export a reflection method.
* @link http://php.net/manual/en/reflectionmethod.export.php
* @param string $class <p>
* The class name.
* </p>
* @param string $name <p>
* The name of the method.
* </p>
* @param bool $return [optional] <p>
* Setting to <b>TRUE</b> will return the export,
* as opposed to emitting it. Setting to <b>FALSE</b> (the default) will do the opposite.
* </p>
* @return string If the <i>return</i> parameter
* is set to <b>TRUE</b>, then the export is returned as a string,
* otherwise <b>NULL</b> is returned.
* @since 5.0
*/
public static function export ($class, $name, $return = false) {}
/**
* Constructs a ReflectionMethod
* @link http://php.net/manual/en/reflectionmethod.construct.php
* @param mixed $class [optional] <p>
* Classname or object (instance of the class) that contains the method.
* </p>
* @param string $name <p>
* Name of the method, or the method FQN in the form 'Foo::bar' if $class argument missing
* </p>
* @since 5.0
*/
public function __construct ($class, $name) {}
/**
* Returns the string representation of the Reflection method object.
* @link http://php.net/manual/en/reflectionmethod.tostring.php
* @return string A string representation of this <b>ReflectionMethod</b> instance.
* @since 5.0
*/
public function __toString () {}
/**
* Checks if method is public
* @link http://php.net/manual/en/reflectionmethod.ispublic.php
* @return bool <b>TRUE</b> if the method is public, otherwise <b>FALSE</b>
* @since 5.0
*/
public function isPublic () {}
/**
* Checks if method is private
* @link http://php.net/manual/en/reflectionmethod.isprivate.php
* @return bool <b>TRUE</b> if the method is private, otherwise <b>FALSE</b>
* @since 5.0
*/
public function isPrivate () {}
/**
* Checks if method is protected
* @link http://php.net/manual/en/reflectionmethod.isprotected.php
* @return bool <b>TRUE</b> if the method is protected, otherwise <b>FALSE</b>
* @since 5.0
*/
public function isProtected () {}
/**
* Checks if method is abstract
* @link http://php.net/manual/en/reflectionmethod.isabstract.php
* @return bool <b>TRUE</b> if the method is abstract, otherwise <b>FALSE</b>
* @since 5.0
*/
public function isAbstract () {}
/**
* Checks if method is final
* @link http://php.net/manual/en/reflectionmethod.isfinal.php
* @return bool <b>TRUE</b> if the method is final, otherwise <b>FALSE</b>
* @since 5.0
*/
public function isFinal () {}
/**
* Checks if method is static
* @link http://php.net/manual/en/reflectionmethod.isstatic.php
* @return bool <b>TRUE</b> if the method is static, otherwise <b>FALSE</b>
* @since 5.0
*/
public function isStatic () {}
/**
* Checks if method is a constructor
* @link http://php.net/manual/en/reflectionmethod.isconstructor.php
* @return bool <b>TRUE</b> if the method is a constructor, otherwise <b>FALSE</b>
* @since 5.0
*/
public function isConstructor () {}
/**
* Checks if method is a destructor
* @link http://php.net/manual/en/reflectionmethod.isdestructor.php
* @return bool <b>TRUE</b> if the method is a destructor, otherwise <b>FALSE</b>
* @since 5.0
*/
public function isDestructor () {}
/**
* Returns a dynamically created closure for the method
* @link http://php.net/manual/en/reflectionmethod.getclosure.php
* @param object $object [optional] Forbidden for static methods, required for other methods.
* @return Closure <b>Closure</b>.
* Returns <b>NULL</b> in case of an error.
* @since 5.4.0
*/
public function getClosure ($object) {}
/**
* Gets the method modifiers
* @link http://php.net/manual/en/reflectionmethod.getmodifiers.php
* @return int A numeric representation of the modifiers. The modifiers are listed below.
* The actual meanings of these modifiers are described in the
* predefined constants.
* <table>
* ReflectionMethod modifiers
* <tr valign="top">
* <td>value</td>
* <td>constant</td>
* </tr>
* <tr valign="top">
* <td>1</td>
* <td>
* ReflectionMethod::IS_STATIC
* </td>
* </tr>
* <tr valign="top">
* <td>2</td>
* <td>
* ReflectionMethod::IS_ABSTRACT
* </td>
* </tr>
* <tr valign="top">
* <td>4</td>
* <td>
* ReflectionMethod::IS_FINAL
* </td>
* </tr>
* <tr valign="top">
* <td>256</td>
* <td>
* ReflectionMethod::IS_PUBLIC
* </td>
* </tr>
* <tr valign="top">
* <td>512</td>
* <td>
* ReflectionMethod::IS_PROTECTED
* </td>
* </tr>
* <tr valign="top">
* <td>1024</td>
* <td>
* ReflectionMethod::IS_PRIVATE
* </td>
* </tr>
* </table>
* @since 5.0
*/
public function getModifiers () {}
/**
* Invoke
* @link http://php.net/manual/en/reflectionmethod.invoke.php
* @param object $object <p>
* The object to invoke the method on. For static methods, pass
* null to this parameter.
* </p>
* @param mixed $parameter [optional] <p>
* Zero or more parameters to be passed to the method.
* It accepts a variable number of parameters which are passed to the method.
* </p>
* @param mixed $_ [optional]
* @return mixed the method result.
* @since 5.0
*/
public function invoke ($object, $parameter = null, $_ = null) {}
/**
* Invoke args
* @link http://php.net/manual/en/reflectionmethod.invokeargs.php
* @param object $object <p>
* The object to invoke the method on. In case of static methods, you can pass
* null to this parameter.
* </p>
* @param array $args <p>
* The parameters to be passed to the function, as an array.
* </p>
* @return mixed the method result.
* @since 5.1.0
*/
public function invokeArgs ($object, array $args) {}
/**
* Gets declaring class for the reflected method.
* @link http://php.net/manual/en/reflectionmethod.getdeclaringclass.php
* @return ReflectionClass A <b>ReflectionClass</b> object of the class that the
* reflected method is part of.
* @since 5.0
*/
public function getDeclaringClass () {}
/**
* Gets the method prototype (if there is one).
* @link http://php.net/manual/en/reflectionmethod.getprototype.php
* @return ReflectionMethod A <b>ReflectionMethod</b> instance of the method prototype.
* @since 5.0
*/
public function getPrototype () {}
/**
* Set method accessibility
* @link http://php.net/manual/en/reflectionmethod.setaccessible.php
* @param bool $accessible <p>
* <b>TRUE</b> to allow accessibility, or <b>FALSE</b>.
* </p>
* @return void No value is returned.
* @since 5.3.2
*/
public function setAccessible ($accessible) {}
}
/**
* The <b>ReflectionClass</b> class reports
* information about a class.
* @link http://php.net/manual/en/class.reflectionclass.php
*/
class ReflectionClass implements Reflector {
const IS_IMPLICIT_ABSTRACT = 16;
const IS_EXPLICIT_ABSTRACT = 32;
const IS_FINAL = 64;
public $name;
/**
* Clones object
* @link http://php.net/manual/en/reflectionclass.clone.php
* @return void
* @since 5.0
*/
final private function __clone () {}
/**
* Exports a class
* @link http://php.net/manual/en/reflectionclass.export.php
* @param mixed $argument <p>
* The reflection to export.
* </p>
* @param bool $return [optional] <p>
* Setting to <b>TRUE</b> will return the export,
* as opposed to emitting it. Setting to <b>FALSE</b> (the default) will do the opposite.
* </p>
* @return string If the <i>return</i> parameter
* is set to <b>TRUE</b>, then the export is returned as a string,
* otherwise <b>NULL</b> is returned.
* @since 5.0
*/
public static function export ($argument, $return = false) {}
/**
* Constructs a ReflectionClass
* @link http://php.net/manual/en/reflectionclass.construct.php
* @param mixed $argument <p>
* Either a string containing the name of the class to
* reflect, or an object.
* </p>
* @since 5.0
*/
public function __construct ($argument) {}
/**
* Returns the string representation of the ReflectionClass object.
* @link http://php.net/manual/en/reflectionclass.tostring.php
* @return string A string representation of this <b>ReflectionClass</b> instance.
* @since 5.0
*/
public function __toString () {}
/**
* Gets class name
* @link http://php.net/manual/en/reflectionclass.getname.php
* @return string The class name.
* @since 5.0
*/
public function getName () {}
/**
* Checks if class is defined internally by an extension, or the core
* @link http://php.net/manual/en/reflectionclass.isinternal.php
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
* @since 5.0
*/
public function isInternal () {}
/**
* Checks if user defined
* @link http://php.net/manual/en/reflectionclass.isuserdefined.php
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
* @since 5.0
*/
public function isUserDefined () {}
/**
* Checks if the class is instantiable
* @link http://php.net/manual/en/reflectionclass.isinstantiable.php
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
* @since 5.0
*/
public function isInstantiable () {}
/**
* Returns whether this class is cloneable
* @link http://php.net/manual/en/reflectionclass.iscloneable.php
* @return bool <b>TRUE</b> if the class is cloneable, <b>FALSE</b> otherwise.
* @since 5.4.0
*/
public function isCloneable () {}
/**
* Gets the filename of the file in which the class has been defined
* @link http://php.net/manual/en/reflectionclass.getfilename.php
* @return string the filename of the file in which the class has been defined.
* If the class is defined in the PHP core or in a PHP extension, <b>FALSE</b>
* is returned.
* @since 5.0
*/
public function getFileName () {}
/**
* Gets starting line number
* @link http://php.net/manual/en/reflectionclass.getstartline.php
* @return int The starting line number, as an integer.
* @since 5.0
*/
public function getStartLine () {}
/**
* Gets end line
* @link http://php.net/manual/en/reflectionclass.getendline.php
* @return int The ending line number of the user defined class, or <b>FALSE</b> if unknown.
* @since 5.0
*/
public function getEndLine () {}
/**
* Gets doc comments
* @link http://php.net/manual/en/reflectionclass.getdoccomment.php
* @return string The doc comment if it exists, otherwise <b>FALSE</b>
* @since 5.1.0
*/
public function getDocComment () {}
/**
* Gets the constructor of the class
* @link http://php.net/manual/en/reflectionclass.getconstructor.php
* @return ReflectionMethod A <b>ReflectionMethod</b> object reflecting the class' constructor, or <b>NULL</b> if the class
* has no constructor.
* @since 5.0
*/
public function getConstructor () {}
/**
* Checks if method is defined
* @link http://php.net/manual/en/reflectionclass.hasmethod.php
* @param string $name <p>
* Name of the method being checked for.
* </p>
* @return bool <b>TRUE</b> if it has the method, otherwise <b>FALSE</b>
* @since 5.1.0
*/
public function hasMethod ($name) {}
/**
* Gets a <b>ReflectionMethod</b> for a class method.
* @link http://php.net/manual/en/reflectionclass.getmethod.php
* @param string $name <p>
* The method name to reflect.
* </p>
* @return ReflectionMethod A <b>ReflectionMethod</b>.
* @since 5.0
*/
public function getMethod ($name) {}
/**
* Gets an array of methods
* @link http://php.net/manual/en/reflectionclass.getmethods.php
* @param string $filter [optional] <p>
* Filter the results to include only methods with certain attributes. Defaults