-
Notifications
You must be signed in to change notification settings - Fork 7
/
Reflection.php
2910 lines (2571 loc) · 88.1 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.7.0.4-7ubuntu2
/**
* The ReflectionException class.
* @link http://php.net/manual/en/class.reflectionexception.php
*/
class ReflectionException extends Exception implements Throwable {
protected $message;
protected $code;
protected $file;
protected $line;
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Clone the exception
* @link http://php.net/manual/en/exception.clone.php
* @return void No value is returned.
*/
final private function __clone() {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Construct the exception
* @link http://php.net/manual/en/exception.construct.php
* @param string $message [optional] <p>
* The Exception message to throw.
* </p>
* @param int $code [optional] <p>
* The Exception code.
* </p>
* @param Throwable $previous [optional] <p>
* The previous exception used for the exception chaining.
* </p>
*/
public function __construct(string $message = "", int $code = 0, Throwable $previous = null) {}
public function __wakeup() {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the Exception message
* @link http://php.net/manual/en/exception.getmessage.php
* @return string the Exception message as a string.
*/
final public function getMessage(): string {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the Exception code
* @link http://php.net/manual/en/exception.getcode.php
* @return mixed the exception code as integer in
* <b>Exception</b> but possibly as other type in
* <b>Exception</b> descendants (for example as
* string in <b>PDOException</b>).
*/
final public function getCode() {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the file in which the exception occurred
* @link http://php.net/manual/en/exception.getfile.php
* @return string the filename in which the exception was created.
*/
final public function getFile(): string {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the line in which the exception occurred
* @link http://php.net/manual/en/exception.getline.php
* @return int the line number where the exception was created.
*/
final public function getLine(): int {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the stack trace
* @link http://php.net/manual/en/exception.gettrace.php
* @return array the Exception stack trace as an array.
*/
final public function getTrace(): array {}
/**
* (PHP 5 >= 5.3.0, PHP 7)<br/>
* Returns previous Exception
* @link http://php.net/manual/en/exception.getprevious.php
* @return Exception the previous <b>Exception</b> if available
* or <b>NULL</b> otherwise.
*/
final public function getPrevious(): Exception {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the stack trace as a string
* @link http://php.net/manual/en/exception.gettraceasstring.php
* @return string the Exception stack trace as a string.
*/
final public function getTraceAsString(): string {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* String representation of the exception
* @link http://php.net/manual/en/exception.tostring.php
* @return string the string representation of the exception.
*/
public function __toString(): string {}
}
/**
* The reflection class.
* @link http://php.net/manual/en/class.reflection.php
*/
class Reflection {
/**
* (PHP 5, PHP 7)<br/>
* 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.
*/
public static function getModifierNames(int $modifiers): array {}
/**
* (PHP 5, PHP 7)<br/>
* 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.
*/
public static function export(Reflector $reflector, bool $return = false): string {}
}
/**
* <b>Reflector</b> is an interface implemented by all
* exportable Reflection classes.
* @link http://php.net/manual/en/class.reflector.php
*/
interface Reflector {
/**
* (PHP 5, PHP 7)<br/>
* Exports
* @link http://php.net/manual/en/reflector.export.php
* @return string
*/
abstract public static function export(): string;
/**
* (PHP 5, PHP 7)<br/>
* To string
* @link http://php.net/manual/en/reflector.tostring.php
* @return string
*/
abstract public function __toString(): string;
}
/**
* A parent class to <b>ReflectionFunction</b>, read its
* description for details.
* @link http://php.net/manual/en/class.reflectionfunctionabstract.php
*/
class ReflectionFunctionAbstract implements Reflector {
public $name;
/**
* (PHP 5, PHP 7)<br/>
* Clones function
* @link http://php.net/manual/en/reflectionfunctionabstract.clone.php
* @return void
*/
final private function __clone() {}
/**
* (PHP 5 >= 5.3.0, PHP 7)<br/>
* 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>
*/
public function inNamespace(): bool {}
/**
* (PHP 5 >= 5.3.0, PHP 7)<br/>
* Checks if closure
* @link http://php.net/manual/en/reflectionfunctionabstract.isclosure.php
* @return bool <b>TRUE</b> if the function is a <b>Closure</b>, otherwise <b>FALSE</b>.
*/
public function isClosure(): bool {}
/**
* (PHP 5, PHP 7)<br/>
* 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>
*/
public function isDeprecated(): bool {}
/**
* (PHP 5, PHP 7)<br/>
* 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>
*/
public function isInternal(): bool {}
/**
* (PHP 5, PHP 7)<br/>
* 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;
*/
public function isUserDefined(): bool {}
/**
* (PHP 5 >= 5.5.0, PHP 7)<br/>
* 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, <b>FALSE</b> if it is not or <b>NULL</b>
* on failure.
*/
public function isGenerator(): bool {}
/**
* (PHP 5 >= 5.6.0, PHP 7)<br/>
* Checks if the 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>.
*/
public function isVariadic(): bool {}
/**
* (PHP >= 5.4.0)<br/>
* 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.
*/
public function getClosureThis() {}
/**
* (PHP >= 5.4.0)<br/>
* Returns the scope associated to the closure
* @link http://php.net/manual/en/reflectionfunctionabstract.getclosurescopeclass.php
* @return ReflectionClass the class on success or <b>NULL</b> on failure.
*/
public function getClosureScopeClass(): ReflectionClass {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets doc comment
* @link http://php.net/manual/en/reflectionfunctionabstract.getdoccomment.php
* @return string The doc comment if it exists, otherwise <b>FALSE</b>
*/
public function getDocComment(): string {}
/**
* (PHP 5, PHP 7)<br/>
* 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.
*/
public function getEndLine(): int {}
/**
* (PHP 5, PHP 7)<br/>
* Gets extension info
* @link http://php.net/manual/en/reflectionfunctionabstract.getextension.php
* @return ReflectionExtension The extension information, as a <b>ReflectionExtension</b> object.
*/
public function getExtension(): ReflectionExtension {}
/**
* (PHP 5, PHP 7)<br/>
* Gets extension name
* @link http://php.net/manual/en/reflectionfunctionabstract.getextensionname.php
* @return string The extensions name.
*/
public function getExtensionName(): string {}
/**
* (PHP 5, PHP 7)<br/>
* Gets file name
* @link http://php.net/manual/en/reflectionfunctionabstract.getfilename.php
* @return string The file name.
*/
public function getFileName(): string {}
/**
* (PHP 5, PHP 7)<br/>
* Gets function name
* @link http://php.net/manual/en/reflectionfunctionabstract.getname.php
* @return string The name of the function.
*/
public function getName(): string {}
/**
* (PHP 5 >= 5.3.0, PHP 7)<br/>
* Gets namespace name
* @link http://php.net/manual/en/reflectionfunctionabstract.getnamespacename.php
* @return string The namespace name.
*/
public function getNamespaceName(): string {}
/**
* (PHP 5 >= 5.0.3, PHP 7)<br/>
* Gets number of parameters
* @link http://php.net/manual/en/reflectionfunctionabstract.getnumberofparameters.php
* @return int The number of parameters.
*/
public function getNumberOfParameters(): int {}
/**
* (PHP 5 >= 5.0.3, PHP 7)<br/>
* Gets number of required parameters
* @link http://php.net/manual/en/reflectionfunctionabstract.getnumberofrequiredparameters.php
* @return int The number of required parameters.
*/
public function getNumberOfRequiredParameters(): int {}
/**
* (PHP 5, PHP 7)<br/>
* Gets parameters
* @link http://php.net/manual/en/reflectionfunctionabstract.getparameters.php
* @return array The parameters, as a <b>ReflectionParameter</b> object.
*/
public function getParameters(): array {}
/**
* (PHP 5 >= 5.3.0, PHP 7)<br/>
* Gets function short name
* @link http://php.net/manual/en/reflectionfunctionabstract.getshortname.php
* @return string The short name of the function.
*/
public function getShortName(): string {}
/**
* (PHP 5, PHP 7)<br/>
* Gets starting line number
* @link http://php.net/manual/en/reflectionfunctionabstract.getstartline.php
* @return int The starting line number.
*/
public function getStartLine(): int {}
/**
* (PHP 5, PHP 7)<br/>
* Gets static variables
* @link http://php.net/manual/en/reflectionfunctionabstract.getstaticvariables.php
* @return array An array of static variables.
*/
public function getStaticVariables(): array {}
/**
* (PHP 5, PHP 7)<br/>
* 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>
*/
public function returnsReference(): bool {}
/**
* (PHP 7)<br/>
* Checks if the function has a specified return type
* @link http://php.net/manual/en/reflectionfunctionabstract.hasreturntype.php
* @return bool <b>TRUE</b> if the function is a specified return type, otherwise <b>FALSE</b>.
*/
public function hasReturnType(): bool {}
/**
* (PHP 7)<br/>
* Gets the specified return type of a function
* @link http://php.net/manual/en/reflectionfunctionabstract.getreturntype.php
* @return ReflectionType a <b>ReflectionType</b> object if a return type is
* specified, <b>NULL</b> otherwise.
*/
public function getReturnType(): ReflectionType {}
/**
* (PHP 5, PHP 7)<br/>
* Exports
* @link http://php.net/manual/en/reflector.export.php
* @return string
*/
abstract public static function export(): string;
/**
* (PHP 5, PHP 7)<br/>
* To string
* @link http://php.net/manual/en/reflector.tostring.php
* @return string
*/
abstract public function __toString(): string;
}
/**
* 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;
/**
* (PHP 5, PHP 7)<br/>
* 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>
*/
public function __construct($name) {}
/**
* (PHP 5, PHP 7)<br/>
* To string
* @link http://php.net/manual/en/reflectionfunction.tostring.php
* @return string <b>ReflectionFunction::export</b>-like output for
* the function.
*/
public function __toString(): string {}
/**
* (PHP 5, PHP 7)<br/>
* 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.
*/
public static function export(string $name, string $return = null): string {}
/**
* (PHP 5, PHP 7)<br/>
* 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>
*/
public function isDisabled(): bool {}
/**
* (PHP 5, PHP 7)<br/>
* Invokes function
* @link http://php.net/manual/en/reflectionfunction.invoke.php
* @param mixed $parameter [optional]
* @param mixed $_ [optional]
* @return mixed the result of the invoked function call.
*/
public function invoke($parameter = null, $_ = null) {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* 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
*/
public function invokeArgs(array $args) {}
/**
* (PHP >= 5.4.0)<br/>
* 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.
*/
public function getClosure(): Closure {}
/**
* (PHP 5, PHP 7)<br/>
* Clones function
* @link http://php.net/manual/en/reflectionfunctionabstract.clone.php
* @return void
*/
final private function __clone() {}
/**
* (PHP 5 >= 5.3.0, PHP 7)<br/>
* 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>
*/
public function inNamespace(): bool {}
/**
* (PHP 5 >= 5.3.0, PHP 7)<br/>
* Checks if closure
* @link http://php.net/manual/en/reflectionfunctionabstract.isclosure.php
* @return bool <b>TRUE</b> if the function is a <b>Closure</b>, otherwise <b>FALSE</b>.
*/
public function isClosure(): bool {}
/**
* (PHP 5, PHP 7)<br/>
* 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>
*/
public function isDeprecated(): bool {}
/**
* (PHP 5, PHP 7)<br/>
* 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>
*/
public function isInternal(): bool {}
/**
* (PHP 5, PHP 7)<br/>
* 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;
*/
public function isUserDefined(): bool {}
/**
* (PHP 5 >= 5.5.0, PHP 7)<br/>
* 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, <b>FALSE</b> if it is not or <b>NULL</b>
* on failure.
*/
public function isGenerator(): bool {}
/**
* (PHP 5 >= 5.6.0, PHP 7)<br/>
* Checks if the 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>.
*/
public function isVariadic(): bool {}
/**
* (PHP >= 5.4.0)<br/>
* 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.
*/
public function getClosureThis() {}
/**
* (PHP >= 5.4.0)<br/>
* Returns the scope associated to the closure
* @link http://php.net/manual/en/reflectionfunctionabstract.getclosurescopeclass.php
* @return ReflectionClass the class on success or <b>NULL</b> on failure.
*/
public function getClosureScopeClass(): ReflectionClass {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets doc comment
* @link http://php.net/manual/en/reflectionfunctionabstract.getdoccomment.php
* @return string The doc comment if it exists, otherwise <b>FALSE</b>
*/
public function getDocComment(): string {}
/**
* (PHP 5, PHP 7)<br/>
* 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.
*/
public function getEndLine(): int {}
/**
* (PHP 5, PHP 7)<br/>
* Gets extension info
* @link http://php.net/manual/en/reflectionfunctionabstract.getextension.php
* @return ReflectionExtension The extension information, as a <b>ReflectionExtension</b> object.
*/
public function getExtension(): ReflectionExtension {}
/**
* (PHP 5, PHP 7)<br/>
* Gets extension name
* @link http://php.net/manual/en/reflectionfunctionabstract.getextensionname.php
* @return string The extensions name.
*/
public function getExtensionName(): string {}
/**
* (PHP 5, PHP 7)<br/>
* Gets file name
* @link http://php.net/manual/en/reflectionfunctionabstract.getfilename.php
* @return string The file name.
*/
public function getFileName(): string {}
/**
* (PHP 5, PHP 7)<br/>
* Gets function name
* @link http://php.net/manual/en/reflectionfunctionabstract.getname.php
* @return string The name of the function.
*/
public function getName(): string {}
/**
* (PHP 5 >= 5.3.0, PHP 7)<br/>
* Gets namespace name
* @link http://php.net/manual/en/reflectionfunctionabstract.getnamespacename.php
* @return string The namespace name.
*/
public function getNamespaceName(): string {}
/**
* (PHP 5 >= 5.0.3, PHP 7)<br/>
* Gets number of parameters
* @link http://php.net/manual/en/reflectionfunctionabstract.getnumberofparameters.php
* @return int The number of parameters.
*/
public function getNumberOfParameters(): int {}
/**
* (PHP 5 >= 5.0.3, PHP 7)<br/>
* Gets number of required parameters
* @link http://php.net/manual/en/reflectionfunctionabstract.getnumberofrequiredparameters.php
* @return int The number of required parameters.
*/
public function getNumberOfRequiredParameters(): int {}
/**
* (PHP 5, PHP 7)<br/>
* Gets parameters
* @link http://php.net/manual/en/reflectionfunctionabstract.getparameters.php
* @return array The parameters, as a <b>ReflectionParameter</b> object.
*/
public function getParameters(): array {}
/**
* (PHP 5 >= 5.3.0, PHP 7)<br/>
* Gets function short name
* @link http://php.net/manual/en/reflectionfunctionabstract.getshortname.php
* @return string The short name of the function.
*/
public function getShortName(): string {}
/**
* (PHP 5, PHP 7)<br/>
* Gets starting line number
* @link http://php.net/manual/en/reflectionfunctionabstract.getstartline.php
* @return int The starting line number.
*/
public function getStartLine(): int {}
/**
* (PHP 5, PHP 7)<br/>
* Gets static variables
* @link http://php.net/manual/en/reflectionfunctionabstract.getstaticvariables.php
* @return array An array of static variables.
*/
public function getStaticVariables(): array {}
/**
* (PHP 5, PHP 7)<br/>
* 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>
*/
public function returnsReference(): bool {}
/**
* (PHP 7)<br/>
* Checks if the function has a specified return type
* @link http://php.net/manual/en/reflectionfunctionabstract.hasreturntype.php
* @return bool <b>TRUE</b> if the function is a specified return type, otherwise <b>FALSE</b>.
*/
public function hasReturnType(): bool {}
/**
* (PHP 7)<br/>
* Gets the specified return type of a function
* @link http://php.net/manual/en/reflectionfunctionabstract.getreturntype.php
* @return ReflectionType a <b>ReflectionType</b> object if a return type is
* specified, <b>NULL</b> otherwise.
*/
public function getReturnType(): ReflectionType {}
}
/**
* The <b>ReflectionGenerator</b> class reports
* information about a generator.
* @link http://php.net/manual/en/class.reflectiongenerator.php
*/
class ReflectionGenerator {
/**
* (PHP 7)<br/>
* Constructs a ReflectionGenerator object
* @link http://php.net/manual/en/reflectiongenerator.construct.php
* @param Generator $generator <p>
* A generator object.
* </p>
*/
public function __construct(Generator $generator) {}
/**
* (PHP 7)<br/>
* Gets the currently executing line of the generator
* @link http://php.net/manual/en/reflectiongenerator.getexecutingline.php
* @return int the line number of the currently executing statement in the generator.
*/
public function getExecutingLine(): int {}
/**
* (PHP 7)<br/>
* Gets the file name of the currently executing generator
* @link http://php.net/manual/en/reflectiongenerator.getexecutingfile.php
* @return string the full path and file name of the currently executing generator.
*/
public function getExecutingFile(): string {}
/**
* (PHP 7)<br/>
* Gets the trace of the executing generator
* @link http://php.net/manual/en/reflectiongenerator.gettrace.php
* @param int $options [optional] <p>
* The value of <i>options</i> can be any of the following
* the following flags.
* </p>
* <p>
* <table>
* Available options
* <tr valign="top">
* <td>Option</td>
* <td>Description</td>
* </tr>
* <tr valign="top">
* <td>
* <b>DEBUG_BACKTRACE_PROVIDE_OBJECT</b>
* </td>
* <td>
* Default.
* </td>
* </tr>
* <tr valign="top">
* <td>
* <b>DEBUG_BACKTRACE_IGNORE_ARGS</b>
* </td>
* <td>
* Don't include the argument information for functions in the stack
* trace.
* </td>
* </tr>
* </table>
* </p>
* @return array the trace of the currently executing generator.
*/
public function getTrace(int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT): array {}
/**
* (PHP 7)<br/>
* Gets the function name of the generator
* @link http://php.net/manual/en/reflectiongenerator.getfunction.php
* @return ReflectionFunctionAbstract a <b>ReflectionFunctionAbstract</b> class. This will
* be <b>ReflectionFunction</b> for functions, or
* <b>ReflectionMethod</b> for methods.
*/
public function getFunction(): ReflectionFunctionAbstract {}
/**
* (PHP 7)<br/>
* Gets the $this value of the generator
* @link http://php.net/manual/en/reflectiongenerator.getthis.php
* @return object the $this value, or <b>NULL</b> if the generator was
* not created in a class context.
*/
public function getThis() {}
/**
* (PHP 7)<br/>
* Gets the executing <b>Generator</b> object
* @link http://php.net/manual/en/reflectiongenerator.getexecutinggenerator.php
* @return Generator the currently executing <b>Generator</b> object.
*/
public function getExecutingGenerator(): Generator {}
}
/**
* 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;
/**
* (PHP 5, PHP 7)<br/>
* Clone
* @link http://php.net/manual/en/reflectionparameter.clone.php
* @return void
*/
final private function __clone() {}
/**
* (PHP 5, PHP 7)<br/>
* 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.
*/
public static function export(string $function, string $parameter, bool $return = null): string {}
/**
* (PHP 5, PHP 7)<br/>
* 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>
*/
public function __construct(string $function, string $parameter) {}
/**
* (PHP 5, PHP 7)<br/>
* To string
* @link http://php.net/manual/en/reflectionparameter.tostring.php
* @return string
*/
public function __toString(): string {}
/**
* (PHP 5, PHP 7)<br/>
* Gets parameter name
* @link http://php.net/manual/en/reflectionparameter.getname.php
* @return string The name of the reflected parameter.
*/
public function getName(): string {}
/**
* (PHP 5, PHP 7)<br/>
* 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>
*/
public function isPassedByReference(): bool {}
/**
* (PHP >= 5.4.0)<br/>
* 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.
*/
public function canBePassedByValue(): bool {}
/**
* (PHP 5 >= 5.2.3, PHP 7)<br/>
* Gets declaring function
* @link http://php.net/manual/en/reflectionparameter.getdeclaringfunction.php
* @return ReflectionFunctionAbstract A <b>ReflectionFunction</b> object.
*/
public function getDeclaringFunction(): ReflectionFunctionAbstract {}
/**
* (PHP 5, PHP 7)<br/>
* Gets declaring class
* @link http://php.net/manual/en/reflectionparameter.getdeclaringclass.php
* @return ReflectionClass A <b>ReflectionClass</b> object.
*/
public function getDeclaringClass(): ReflectionClass {}
/**
* (PHP 5, PHP 7)<br/>
* Get the type hinted class
* @link http://php.net/manual/en/reflectionparameter.getclass.php
* @return ReflectionClass A <b>ReflectionClass</b> object.
*/
public function getClass(): ReflectionClass {}
/**
* (PHP 7)<br/>
* Checks if parameter has a type
* @link http://php.net/manual/en/reflectionparameter.hastype.php
* @return bool <b>TRUE</b> if a type is specified, <b>FALSE</b> otherwise.
*/
public function hasType(): bool {}
/**
* (PHP 7)<br/>
* Gets a parameter's type
* @link http://php.net/manual/en/reflectionparameter.gettype.php
* @return ReflectionType a <b>ReflectionType</b> object if a parameter type is
* specified, <b>NULL</b> otherwise.
*/
public function getType(): ReflectionType {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* 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.
*/
public function isArray(): bool {}
/**
* (PHP 5 >= 5.4.0, PHP 7)<br/>
* Returns whether parameter MUST be callable
* @link http://php.net/manual/en/reflectionparameter.iscallable.php
* @return bool <b>TRUE</b> if the parameter is callable, <b>FALSE</b> if it is
* not or <b>NULL</b> on failure.
*/
public function isCallable(): bool {}
/**
* (PHP 5, PHP 7)<br/>
* 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>
*/
public function allowsNull(): bool {}
/**
* (PHP 5 >= 5.2.3, PHP 7)<br/>
* 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.
*/
public function getPosition(): int {}
/**
* (PHP 5 >= 5.0.3, PHP 7)<br/>
* 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>
*/
public function isOptional(): bool {}
/**
* (PHP 5 >= 5.0.3, PHP 7)<br/>
* 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>
*/
public function isDefaultValueAvailable(): bool {}
/**
* (PHP 5 >= 5.0.3, PHP 7)<br/>
* Gets default parameter value
* @link http://php.net/manual/en/reflectionparameter.getdefaultvalue.php
* @return mixed The parameters default value.
*/
public function getDefaultValue() {}
/**
* (PHP 5 >= 5.4.6, PHP 7)<br/>
* Returns whether the default value of this parameter is constant
* @link http://php.net/manual/en/reflectionparameter.isdefaultvalueconstant.php
* @return bool <b>TRUE</b> if the default value is constant, <b>FALSE</b> if it is not or
* <b>NULL</b> on failure.
*/
public function isDefaultValueConstant(): bool {}
/**
* (PHP 5 >= 5.4.6, PHP 7)<br/>
* Returns the default value's constant name if default value is constant or null