php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_reflection.stub.php
Go to the documentation of this file.
1<?php
2
4
6{
7}
8
10{
12 public static function getModifierNames(int $modifiers): array {}
13}
14
15interface Reflector extends Stringable
16{
17}
18
20abstract class ReflectionFunctionAbstract implements Reflector
21{
22 public string $name;
23
25 private function __clone(): void {}
26
28 public function inNamespace(): bool {}
29
31 public function isClosure(): bool {}
32
34 public function isDeprecated(): bool {}
35
37 public function isInternal(): bool {}
38
40 public function isUserDefined(): bool {}
41
43 public function isGenerator(): bool {}
44
46 public function isVariadic(): bool {}
47
49 public function isStatic(): bool {}
50
53
56
59
61
63 public function getDocComment(): string|false {}
64
66 public function getEndLine(): int|false {}
67
70
72 public function getExtensionName(): string|false {}
73
75 public function getFileName(): string|false {}
76
78 public function getName(): string {}
79
81 public function getNamespaceName(): string {}
82
85
88
90 public function getParameters(): array {}
91
93 public function getShortName(): string {}
94
96 public function getStartLine(): int|false {}
97
99 public function getStaticVariables(): array {}
100
102 public function returnsReference(): bool {}
103
105 public function hasReturnType(): bool {}
106
109
111
113
114 public function getAttributes(?string $name = null, int $flags = 0): array {}
115}
116
118{
120 public const int IS_DEPRECATED = UNKNOWN;
121
122 public function __construct(Closure|string $function) {}
123
124 public function __toString(): string {}
125
126 public function isAnonymous(): bool {}
127
131 #[\Deprecated(since: '8.0', message: "as ReflectionFunction can no longer be constructed for disabled functions")]
132 public function isDisabled(): bool {}
133
135 public function invoke(mixed ...$args): mixed {}
136
138 public function invokeArgs(array $args): mixed {}
139
142}
143
146{
147 public function __construct(Generator $generator) {}
148
150 public function getExecutingLine(): int {}
151
153 public function getExecutingFile(): string {}
154
157
160
162 public function getThis(): ?object {}
163
166
167 public function isClosed(): bool {}
168}
169
171{
173 public const int IS_STATIC = UNKNOWN;
175 public const int IS_PUBLIC = UNKNOWN;
177 public const int IS_PROTECTED = UNKNOWN;
179 public const int IS_PRIVATE = UNKNOWN;
181 public const int IS_ABSTRACT = UNKNOWN;
183 public const int IS_FINAL = UNKNOWN;
184
185 public string $class;
186
187 public function __construct(object|string $objectOrMethod, ?string $method = null) {}
188
189 public static function createFromMethodName(string $method): static {}
190
191 public function __toString(): string {}
192
194 public function isPublic(): bool {}
195
197 public function isPrivate(): bool {}
198
200 public function isProtected(): bool {}
201
203 public function isAbstract(): bool {}
204
206 public function isFinal(): bool {}
207
209 public function isConstructor(): bool {}
210
212 public function isDestructor(): bool {}
213
215 public function getClosure(?object $object = null): Closure {}
216
218 public function getModifiers(): int {}
219
221 public function invoke(?object $object, mixed ...$args): mixed {}
222
224 public function invokeArgs(?object $object, array $args): mixed {}
225
228
231
232 public function hasPrototype(): bool {}
233
235 public function setAccessible(bool $accessible): void {}
236}
237
240{
245 public const int IS_IMPLICIT_ABSTRACT = UNKNOWN;
247 public const int IS_EXPLICIT_ABSTRACT = UNKNOWN;
249 public const int IS_FINAL = UNKNOWN;
251 public const int IS_READONLY = UNKNOWN;
252
254 public const int SKIP_INITIALIZATION_ON_SERIALIZE = UNKNOWN;
255
257 public const int SKIP_DESTRUCTOR = UNKNOWN;
258
259 public string $name;
260
261 private function __clone(): void {}
262
263 public function __construct(object|string $objectOrClass) {}
264
265 public function __toString(): string {}
266
268 public function getName(): string {}
269
271 public function isInternal(): bool {}
272
274 public function isUserDefined(): bool {}
275
277 public function isAnonymous(): bool {}
278
280 public function isInstantiable(): bool {}
281
283 public function isCloneable(): bool {}
284
286 public function getFileName(): string|false {}
287
289 public function getStartLine(): int|false {}
290
292 public function getEndLine(): int|false {}
293
295 public function getDocComment(): string|false {}
296
299
301 public function hasMethod(string $name): bool {}
302
305
307 public function getMethods(?int $filter = null): array {}
308
310 public function hasProperty(string $name): bool {}
311
314
316 public function getProperties(?int $filter = null): array {}
317
319 public function hasConstant(string $name): bool {}
320
322 public function getConstants(?int $filter = null): array {}
323
325 public function getReflectionConstants(?int $filter = null): array {}
326
328 public function getConstant(string $name): mixed {} // TODO throw exception when the constant doesn't exist
329
332
334 public function getInterfaces(): array {}
335
337 public function getInterfaceNames(): array {}
338
340 public function isInterface(): bool {}
341
343 public function getTraits(): array {}
344
346 public function getTraitNames(): array {}
347
349 public function getTraitAliases(): array {}
350
352 public function isTrait(): bool {}
353
354 public function isEnum(): bool {}
355
357 public function isAbstract(): bool {}
358
360 public function isFinal(): bool {}
361
362 public function isReadOnly(): bool {}
363
365 public function getModifiers(): int {}
366
368 public function isInstance(object $object): bool {}
369
371 public function newInstance(mixed ...$args): object {}
372
375
377 public function newInstanceArgs(array $args = []): ?object {}
378
379 public function newLazyGhost(callable $initializer, int $options = 0): object {}
380
381 public function newLazyProxy(callable $factory, int $options = 0): object {}
382
383 public function resetAsLazyGhost(object $object, callable $initializer, int $options = 0): void {}
384
385 public function resetAsLazyProxy(object $object, callable $factory, int $options = 0): void {}
386
388
390
392
393 public function getLazyInitializer(object $object): ?callable {}
394
397
399 public function isSubclassOf(ReflectionClass|string $class): bool {}
400
402 public function getStaticProperties(): array {}
403
405 public function getStaticPropertyValue(string $name, mixed $default = UNKNOWN): mixed {}
406
408 public function setStaticPropertyValue(string $name, mixed $value): void {}
409
412
414 public function isIterable(): bool {}
415
420 public function isIterateable(): bool {}
421
423 public function implementsInterface(ReflectionClass|string $interface): bool {}
424
427
429 public function getExtensionName(): string|false {}
430
432 public function inNamespace(): bool {}
433
435 public function getNamespaceName(): string {}
436
438 public function getShortName(): string {}
439
440 public function getAttributes(?string $name = null, int $flags = 0): array {}
441}
442
444{
445 public function __construct(object $object) {}
446}
447
449{
450 case Get = 'get';
451 case Set = 'set';
452}
453
456{
458 public const int IS_STATIC = UNKNOWN;
460 public const int IS_READONLY = UNKNOWN;
462 public const int IS_PUBLIC = UNKNOWN;
464 public const int IS_PROTECTED = UNKNOWN;
466 public const int IS_PRIVATE = UNKNOWN;
468 public const int IS_ABSTRACT = UNKNOWN;
470 public const int IS_PROTECTED_SET = UNKNOWN;
472 public const int IS_PRIVATE_SET = UNKNOWN;
474 public const int IS_VIRTUAL = UNKNOWN;
476 public const int IS_FINAL = UNKNOWN;
477
478 public string $name;
479 public string $class;
480
482 private function __clone(): void {}
483
484 public function __construct(object|string $class, string $property) {}
485
486 public function __toString(): string {}
487
489 public function getName(): string {}
490
492 public function getValue(?object $object = null): mixed {}
493
495 public function setValue(mixed $objectOrValue, mixed $value = UNKNOWN): void {}
496
497 public function getRawValue(object $object): mixed {}
498
499 public function setRawValue(object $object, mixed $value): void {}
500
502
504
505 public function isLazy(object $object): bool {}
506
508 public function isInitialized(?object $object = null): bool {}
509
511 public function isPublic(): bool {}
512
514 public function isPrivate(): bool {}
515
517 public function isProtected(): bool {}
518
519 public function isPrivateSet(): bool {}
520
521 public function isProtectedSet(): bool {}
522
524 public function isStatic(): bool {}
525
526 public function isReadOnly(): bool {}
527
529 public function isDefault(): bool {}
530
531 public function isDynamic(): bool {}
532
533 public function isAbstract(): bool {}
534
535 public function isVirtual(): bool {}
536
537 public function isPromoted(): bool {}
538
540 public function getModifiers(): int {}
541
544
546 public function getDocComment(): string|false {}
547
549 public function setAccessible(bool $accessible): void {}
550
553
555
557 public function hasType(): bool {}
558
559 public function hasDefaultValue(): bool {}
560
562 public function getDefaultValue(): mixed {}
563
564 public function getAttributes(?string $name = null, int $flags = 0): array {}
565
566 public function hasHooks(): bool {}
567
569 public function getHooks(): array {}
570
571 public function hasHook(PropertyHookType $type): bool {}
572
574
575 public function isFinal(): bool {}
576}
577
580{
582 public const int IS_PUBLIC = UNKNOWN;
584 public const int IS_PROTECTED = UNKNOWN;
586 public const int IS_PRIVATE = UNKNOWN;
588 public const int IS_FINAL = UNKNOWN;
589
590 public string $name;
591 public string $class;
592
594 private function __clone(): void {}
595
596 public function __construct(object|string $class, string $constant) {}
597
598 public function __toString(): string {}
599
601 public function getName(): string {}
602
604 public function getValue(): mixed {}
605
607 public function isPublic(): bool {}
608
610 public function isPrivate(): bool {}
611
613 public function isProtected(): bool {}
614
615 public function isFinal(): bool {}
616
618 public function getModifiers(): int {}
619
622
624 public function getDocComment(): string|false {}
625
626 public function getAttributes(?string $name = null, int $flags = 0): array {}
627
628 public function isEnumCase(): bool {}
629
630 public function isDeprecated(): bool {}
631
632 public function hasType(): bool {}
633
635}
636
639{
640 public string $name;
641
643 private function __clone(): void {}
644
646 public function __construct($function, int|string $param) {}
647
648 public function __toString(): string {}
649
651 public function getName(): string {}
652
655
657 public function canBePassedByValue(): bool {}
658
661
664
668 #[\Deprecated(since: '8.0', message: "use ReflectionParameter::getType() instead")]
670
672 public function hasType(): bool {}
673
676
680 #[\Deprecated(since: '8.0', message: "use ReflectionParameter::getType() instead")]
681 public function isArray(): bool {}
682
686 #[\Deprecated(since: '8.0', message: "use ReflectionParameter::getType() instead")]
687 public function isCallable(): bool {}
688
690 public function allowsNull(): bool {}
691
693 public function getPosition(): int {}
694
696 public function isOptional(): bool {}
697
700
702 public function getDefaultValue(): mixed {}
703
706
709
711 public function isVariadic(): bool {}
712
713 public function isPromoted(): bool {}
714
715 public function getAttributes(?string $name = null, int $flags = 0): array {}
716}
717
719abstract class ReflectionType implements Stringable
720{
722 private function __clone(): void {}
723
725 public function allowsNull(): bool {}
726
727 public function __toString(): string {}
728}
729
731{
733 public function getName(): string {}
734
736 public function isBuiltin(): bool {}
737}
738
740{
741 public function getTypes(): array {}
742}
743
745{
746 public function getTypes(): array {}
747}
748
751{
752 public string $name;
753
755 private function __clone(): void {}
756
757 public function __construct(string $name) {}
758
759 public function __toString(): string {}
760
762 public function getName(): string {}
763
765 public function getVersion(): ?string {}
766
768 public function getFunctions(): array {}
769
771 public function getConstants(): array {}
772
774 public function getINIEntries(): array {}
775
777 public function getClasses(): array {}
778
780 public function getClassNames(): array {}
781
783 public function getDependencies(): array {}
784
786 public function info(): void {}
787
789 public function isPersistent(): bool {}
790
792 public function isTemporary(): bool {}
793}
794
797{
798 public string $name;
799
801 private function __clone(): void {}
802
803 public function __construct(string $name) {}
804
805 public function __toString(): string {}
806
808 public function getName(): string {}
809
811 public function getVersion(): string {}
812
814 public function getAuthor(): string {}
815
817 public function getURL(): string {}
818
820 public function getCopyright(): string {}
821}
822
825{
826 public static function fromArrayElement(array $array, int|string $key): ?ReflectionReference {}
827
828 public function getId(): string {}
829
831 private function __clone(): void {}
832
833 private function __construct() {}
834}
835
838{
840 public const int IS_INSTANCEOF = UNKNOWN;
841
842 public string $name;
843
844 public function getName(): string {}
845 public function getTarget(): int {}
846 public function isRepeated(): bool {}
847 public function getArguments(): array {}
849
850 public function __toString(): string {}
851
852 private function __clone(): void {}
853
854 private function __construct() {}
855}
856
858{
859 public function __construct(object|string $objectOrClass) {}
860
861 public function hasCase(string $name): bool {}
862
864
865 public function getCases(): array {}
866
867 public function isBacked(): bool {}
868
870}
871
873{
874 public function __construct(object|string $class, string $constant) {}
875
876 public function getEnum(): ReflectionEnum {}
877
880}
881
883{
884 public function __construct(object|string $class, string $constant) {}
885
886 public function getBackingValue(): int|string {}
887}
888
891{
892 public function __construct(Fiber $fiber) {}
893
894 public function getFiber(): Fiber {}
895
896 public function getExecutingFile(): ?string {}
897
898 public function getExecutingLine(): ?int {}
899
900 public function getCallable(): callable {}
901
903}
904
909final class ReflectionConstant implements Reflector
910{
911 public string $name;
912
913 public function __construct(string $name) {}
914
915 public function getName(): string {}
916
917 public function getNamespaceName(): string {}
918
919 public function getShortName(): string {}
920
921 public function getValue(): mixed {}
922
923 public function isDeprecated(): bool {}
924
925 public function __toString(): string {}
926}
getAttributes(?string $name=null, int $flags=0)
__construct(object|string $class, string $constant)
getAttributes(?string $name=null, int $flags=0)
isUninitializedLazyObject(object $object)
getReflectionConstant(string $name)
resetAsLazyGhost(object $object, callable $initializer, int $options=0)
isInstance(object $object)
getStaticPropertyValue(string $name, mixed $default=UNKNOWN)
getMethods(?int $filter=null)
implementsInterface(ReflectionClass|string $interface)
markLazyObjectAsInitialized(object $object)
setStaticPropertyValue(string $name, mixed $value)
newInstance(mixed ... $args)
resetAsLazyProxy(object $object, callable $factory, int $options=0)
initializeLazyObject(object $object)
getLazyInitializer(object $object)
isSubclassOf(ReflectionClass|string $class)
hasConstant(string $name)
__construct(object|string $objectOrClass)
newLazyGhost(callable $initializer, int $options=0)
newInstanceArgs(array $args=[])
getConstants(?int $filter=null)
hasProperty(string $name)
getReflectionConstants(?int $filter=null)
getProperty(string $name)
getConstant(string $name)
getProperties(?int $filter=null)
const int SKIP_INITIALIZATION_ON_SERIALIZE
newLazyProxy(callable $factory, int $options=0)
__construct(object|string $class, string $constant)
__construct(object|string $class, string $constant)
__construct(object|string $objectOrClass)
getTrace(int $options=DEBUG_BACKTRACE_PROVIDE_OBJECT)
__construct(Fiber $fiber)
getAttributes(?string $name=null, int $flags=0)
__construct(Closure|string $function)
__construct(Generator $generator)
getTrace(int $options=DEBUG_BACKTRACE_PROVIDE_OBJECT)
getClosure(?object $object=null)
invoke(?object $object, mixed ... $args)
invokeArgs(?object $object, array $args)
static createFromMethodName(string $method)
__construct(object|string $objectOrMethod, ?string $method=null)
setAccessible(bool $accessible)
__construct(object $object)
getAttributes(?string $name=null, int $flags=0)
__construct($function, int|string $param)
isInitialized(?object $object=null)
getHook(PropertyHookType $type)
hasHook(PropertyHookType $type)
getValue(?object $object=null)
skipLazyInitialization(object $object)
getRawValue(object $object)
setValue(mixed $objectOrValue, mixed $value=UNKNOWN)
__construct(object|string $class, string $property)
setAccessible(bool $accessible)
setRawValue(object $object, mixed $value)
setRawValueWithoutLazyInitialization(object $object, mixed $value)
getAttributes(?string $name=null, int $flags=0)
static fromArrayElement(array $array, int|string $key)
static getModifierNames(int $modifiers)
if(PHP_SAPI !='cli') if($argc< 1) $options
Definition ext_skel.php:376
$array
Definition test.php:58
#define DEBUG_BACKTRACE_PROVIDE_OBJECT
Definition zend.h:450
ZEND_API void(ZEND_FASTCALL *zend_touch_vm_stack_data)(void *vm_stack_data)
function(EX_VAR(opline->result.var))
object