php-src/ext/reflection/php_reflection.stub.php

891 lines
23 KiB
PHP
Raw Permalink Normal View History

2019-10-13 18:57:09 +00:00
<?php
/** @generate-class-entries */
2019-10-13 18:57:09 +00:00
class ReflectionException extends Exception
{
}
class Reflection
{
/** @tentative-return-type */
public static function getModifierNames(int $modifiers): array {}
2019-10-13 18:57:09 +00:00
}
interface Reflector extends Stringable
2019-10-13 18:57:09 +00:00
{
}
/** @not-serializable */
2019-10-13 18:57:09 +00:00
abstract class ReflectionFunctionAbstract implements Reflector
{
public string $name;
/** @implementation-alias ReflectionClass::__clone */
private function __clone(): void {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function inNamespace(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isClosure(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isDeprecated(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isInternal(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isUserDefined(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isGenerator(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isVariadic(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isStatic(): bool {}
/** @tentative-return-type */
public function getClosureThis(): ?object {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getClosureScopeClass(): ?ReflectionClass {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getClosureCalledClass(): ?ReflectionClass {}
public function getClosureUsedVariables(): array {}
/** @tentative-return-type */
public function getDocComment(): string|false {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getEndLine(): int|false {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getExtension(): ?ReflectionExtension {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getExtensionName(): string|false {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getFileName(): string|false {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getName(): string {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getNamespaceName(): string {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getNumberOfParameters(): int {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getNumberOfRequiredParameters(): int {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getParameters(): array {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getShortName(): string {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getStartLine(): int|false {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getStaticVariables(): array {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function returnsReference(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function hasReturnType(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getReturnType(): ?ReflectionType {}
public function hasTentativeReturnType(): bool {}
public function getTentativeReturnType(): ?ReflectionType {}
public function getAttributes(?string $name = null, int $flags = 0): array {}
2019-10-13 18:57:09 +00:00
}
class ReflectionFunction extends ReflectionFunctionAbstract
{
/**
* @var int
* @cvalue ZEND_ACC_DEPRECATED
*/
public const IS_DEPRECATED = UNKNOWN;
public function __construct(Closure|string $function) {}
2019-10-13 18:57:09 +00:00
public function __toString(): string {}
2019-10-13 18:57:09 +00:00
public function isAnonymous(): bool {}
/**
* @tentative-return-type
* @deprecated ReflectionFunction can no longer be constructed for disabled functions
*/
public function isDisabled(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function invoke(mixed ...$args): mixed {}
2019-11-16 17:40:06 +00:00
/** @tentative-return-type */
public function invokeArgs(array $args): mixed {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getClosure(): Closure {}
2019-10-13 18:57:09 +00:00
}
/** @not-serializable */
final class ReflectionGenerator
2019-10-13 18:57:09 +00:00
{
public function __construct(Generator $generator) {}
/** @tentative-return-type */
public function getExecutingLine(): int {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getExecutingFile(): string {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getTrace(int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT): array {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getFunction(): ReflectionFunctionAbstract {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getThis(): ?object {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getExecutingGenerator(): Generator {}
2019-10-13 18:57:09 +00:00
}
class ReflectionMethod extends ReflectionFunctionAbstract
{
/**
* @var int
* @cvalue ZEND_ACC_STATIC
*/
public const IS_STATIC = UNKNOWN;
/**
* @var int
* @cvalue ZEND_ACC_PUBLIC
*/
public const IS_PUBLIC = UNKNOWN;
/**
* @var int
* @cvalue ZEND_ACC_PROTECTED
*/
public const IS_PROTECTED = UNKNOWN;
/**
* @var int
* @cvalue ZEND_ACC_PRIVATE
*/
public const IS_PRIVATE = UNKNOWN;
/**
* @var int
* @cvalue ZEND_ACC_ABSTRACT
*/
public const IS_ABSTRACT = UNKNOWN;
/**
* @var int
* @cvalue ZEND_ACC_FINAL
*/
public const IS_FINAL = UNKNOWN;
public string $class;
public function __construct(object|string $objectOrMethod, ?string $method = null) {}
2019-10-13 18:57:09 +00:00
public static function createFromMethodName(string $method): static {}
public function __toString(): string {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isPublic(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isPrivate(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isProtected(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isAbstract(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isFinal(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isConstructor(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isDestructor(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getClosure(?object $object = null): Closure {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getModifiers(): int {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function invoke(?object $object, mixed ...$args): mixed {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function invokeArgs(?object $object, array $args): mixed {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getDeclaringClass(): ReflectionClass {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getPrototype(): ReflectionMethod {}
2019-10-13 18:57:09 +00:00
public function hasPrototype(): bool {}
/** @tentative-return-type */
public function setAccessible(bool $accessible): void {}
2019-10-13 18:57:09 +00:00
}
/** @not-serializable */
2019-10-13 18:57:09 +00:00
class ReflectionClass implements Reflector
{
/**
* @var int
* @cvalue ZEND_ACC_IMPLICIT_ABSTRACT_CLASS
* @todo deprecate
*/
public const IS_IMPLICIT_ABSTRACT = UNKNOWN;
/**
* @var int
* @cvalue ZEND_ACC_EXPLICIT_ABSTRACT_CLASS
*/
public const IS_EXPLICIT_ABSTRACT = UNKNOWN;
/**
* @var int
* @cvalue ZEND_ACC_FINAL
*/
public const IS_FINAL = UNKNOWN;
/**
* @var int
* @cvalue ZEND_ACC_READONLY_CLASS
*/
public const IS_READONLY = UNKNOWN;
public string $name;
private function __clone(): void {}
2019-11-16 17:40:06 +00:00
public function __construct(object|string $objectOrClass) {}
2019-10-13 18:57:09 +00:00
public function __toString(): string {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getName(): string {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isInternal(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isUserDefined(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isAnonymous(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isInstantiable(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isCloneable(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getFileName(): string|false {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getStartLine(): int|false {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getEndLine(): int|false {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getDocComment(): string|false {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getConstructor(): ?ReflectionMethod {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function hasMethod(string $name): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getMethod(string $name): ReflectionMethod {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getMethods(?int $filter = null): array {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function hasProperty(string $name): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getProperty(string $name): ReflectionProperty {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getProperties(?int $filter = null): array {}
2019-11-16 17:40:06 +00:00
/** @tentative-return-type */
public function hasConstant(string $name): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getConstants(?int $filter = null): array {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getReflectionConstants(?int $filter = null): array {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getConstant(string $name): mixed {} // TODO throw exception when the constant doesn't exist
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getReflectionConstant(string $name): ReflectionClassConstant|false {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getInterfaces(): array {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getInterfaceNames(): array {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isInterface(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getTraits(): array {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getTraitNames(): array {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getTraitAliases(): array {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isTrait(): bool {}
2019-10-13 18:57:09 +00:00
public function isEnum(): bool {}
/** @tentative-return-type */
public function isAbstract(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isFinal(): bool {}
2019-10-13 18:57:09 +00:00
public function isReadOnly(): bool {}
/** @tentative-return-type */
public function getModifiers(): int {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isInstance(object $object): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function newInstance(mixed ...$args): object {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function newInstanceWithoutConstructor(): object {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function newInstanceArgs(array $args = []): ?object {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getParentClass(): ReflectionClass|false {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isSubclassOf(ReflectionClass|string $class): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getStaticProperties(): array {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getStaticPropertyValue(string $name, mixed $default = UNKNOWN): mixed {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function setStaticPropertyValue(string $name, mixed $value): void {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getDefaultProperties(): array {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isIterable(): bool {}
2019-10-13 18:57:09 +00:00
/**
* @tentative-return-type
* @alias ReflectionClass::isIterable
*/
public function isIterateable(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function implementsInterface(ReflectionClass|string $interface): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getExtension(): ?ReflectionExtension {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getExtensionName(): string|false {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function inNamespace(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getNamespaceName(): string {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getShortName(): string {}
public function getAttributes(?string $name = null, int $flags = 0): array {}
2019-10-13 18:57:09 +00:00
}
class ReflectionObject extends ReflectionClass
{
public function __construct(object $object) {}
2019-10-13 18:57:09 +00:00
}
/** @not-serializable */
2019-10-13 18:57:09 +00:00
class ReflectionProperty implements Reflector
{
/**
* @var int
* @cvalue ZEND_ACC_STATIC
*/
public const IS_STATIC = UNKNOWN;
/**
* @var int
* @cvalue ZEND_ACC_READONLY
*/
public const IS_READONLY = UNKNOWN;
/**
* @var int
* @cvalue ZEND_ACC_PUBLIC
*/
public const IS_PUBLIC = UNKNOWN;
/**
* @var int
* @cvalue ZEND_ACC_PROTECTED
*/
public const IS_PROTECTED = UNKNOWN;
/**
* @var int
* @cvalue ZEND_ACC_PRIVATE
*/
public const IS_PRIVATE = UNKNOWN;
public string $name;
public string $class;
/** @implementation-alias ReflectionClass::__clone */
private function __clone(): void {}
2019-10-13 18:57:09 +00:00
public function __construct(object|string $class, string $property) {}
2019-10-13 18:57:09 +00:00
public function __toString(): string {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getName(): string {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getValue(?object $object = null): mixed {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function setValue(mixed $objectOrValue, mixed $value = UNKNOWN): void {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isInitialized(?object $object = null): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isPublic(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isPrivate(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isProtected(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isStatic(): bool {}
2019-10-13 18:57:09 +00:00
public function isReadOnly(): bool {}
/** @tentative-return-type */
public function isDefault(): bool {}
2019-10-13 18:57:09 +00:00
public function isPromoted(): bool {}
/** @tentative-return-type */
public function getModifiers(): int {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getDeclaringClass(): ReflectionClass {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getDocComment(): string|false {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function setAccessible(bool $accessible): void {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getType(): ?ReflectionType {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function hasType(): bool {}
public function hasDefaultValue(): bool {}
/** @tentative-return-type */
public function getDefaultValue(): mixed {}
public function getAttributes(?string $name = null, int $flags = 0): array {}
2019-10-13 18:57:09 +00:00
}
/** @not-serializable */
2019-10-13 18:57:09 +00:00
class ReflectionClassConstant implements Reflector
{
/**
* @var int
* @cvalue ZEND_ACC_PUBLIC
*/
public const IS_PUBLIC = UNKNOWN;
/**
* @var int
* @cvalue ZEND_ACC_PROTECTED
*/
public const IS_PROTECTED = UNKNOWN;
/**
* @var int
* @cvalue ZEND_ACC_PRIVATE
*/
public const IS_PRIVATE = UNKNOWN;
/**
* @var int
* @cvalue ZEND_ACC_FINAL
*/
public const IS_FINAL = UNKNOWN;
public string $name;
public string $class;
/** @implementation-alias ReflectionClass::__clone */
private function __clone(): void {}
2019-10-13 18:57:09 +00:00
public function __construct(object|string $class, string $constant) {}
2019-10-13 18:57:09 +00:00
public function __toString(): string {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getName(): string {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getValue(): mixed {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isPublic(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isPrivate(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isProtected(): bool {}
2019-10-13 18:57:09 +00:00
public function isFinal(): bool {}
/** @tentative-return-type */
public function getModifiers(): int {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getDeclaringClass(): ReflectionClass {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getDocComment(): string|false {}
public function getAttributes(?string $name = null, int $flags = 0): array {}
public function isEnumCase(): bool {}
public function hasType(): bool {}
public function getType(): ?ReflectionType {}
2019-10-13 18:57:09 +00:00
}
/** @not-serializable */
2019-10-13 18:57:09 +00:00
class ReflectionParameter implements Reflector
{
public string $name;
/** @implementation-alias ReflectionClass::__clone */
private function __clone(): void {}
2019-10-13 18:57:09 +00:00
/** @param string|array|object $function */
public function __construct($function, int|string $param) {}
2019-10-13 18:57:09 +00:00
public function __toString(): string {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getName(): string {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isPassedByReference(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function canBePassedByValue(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getDeclaringFunction(): ReflectionFunctionAbstract {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getDeclaringClass(): ?ReflectionClass {}
2019-10-13 18:57:09 +00:00
/**
* @tentative-return-type
* @deprecated Use ReflectionParameter::getType() instead
*/
public function getClass(): ?ReflectionClass {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function hasType(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getType(): ?ReflectionType {}
2019-10-13 18:57:09 +00:00
/**
* @tentative-return-type
* @deprecated Use ReflectionParameter::getType() instead
*/
public function isArray(): bool {}
2019-10-13 18:57:09 +00:00
/**
* @tentative-return-type
* @deprecated Use ReflectionParameter::getType() instead
*/
public function isCallable(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function allowsNull(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getPosition(): int {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isOptional(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isDefaultValueAvailable(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getDefaultValue(): mixed {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isDefaultValueConstant(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getDefaultValueConstantName(): ?string {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isVariadic(): bool {}
public function isPromoted(): bool {}
public function getAttributes(?string $name = null, int $flags = 0): array {}
2019-10-13 18:57:09 +00:00
}
/** @not-serializable */
abstract class ReflectionType implements Stringable
2019-10-13 18:57:09 +00:00
{
/** @implementation-alias ReflectionClass::__clone */
private function __clone(): void {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function allowsNull(): bool {}
2019-10-13 18:57:09 +00:00
public function __toString(): string {}
2019-10-13 18:57:09 +00:00
}
class ReflectionNamedType extends ReflectionType
{
/** @tentative-return-type */
public function getName(): string {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isBuiltin(): bool {}
2019-10-13 18:57:09 +00:00
}
class ReflectionUnionType extends ReflectionType
{
public function getTypes(): array {}
}
class ReflectionIntersectionType extends ReflectionType
{
public function getTypes(): array {}
}
/** @not-serializable */
2019-10-13 18:57:09 +00:00
class ReflectionExtension implements Reflector
{
public string $name;
/** @implementation-alias ReflectionClass::__clone */
private function __clone(): void {}
2019-10-13 18:57:09 +00:00
public function __construct(string $name) {}
public function __toString(): string {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getName(): string {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getVersion(): ?string {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getFunctions(): array {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getConstants(): array {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getINIEntries(): array {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getClasses(): array {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getClassNames(): array {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getDependencies(): array {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function info(): void {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isPersistent(): bool {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function isTemporary(): bool {}
2019-10-13 18:57:09 +00:00
}
/** @not-serializable */
2019-10-13 18:57:09 +00:00
class ReflectionZendExtension implements Reflector
{
public string $name;
/** @implementation-alias ReflectionClass::__clone */
private function __clone(): void {}
2019-10-13 18:57:09 +00:00
public function __construct(string $name) {}
public function __toString(): string {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getName(): string {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getVersion(): string {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getAuthor(): string {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getURL(): string {}
2019-10-13 18:57:09 +00:00
/** @tentative-return-type */
public function getCopyright(): string {}
2019-10-13 18:57:09 +00:00
}
/** @not-serializable */
2019-10-13 18:57:09 +00:00
final class ReflectionReference
{
public static function fromArrayElement(array $array, int|string $key): ?ReflectionReference {}
2019-10-13 18:57:09 +00:00
2019-11-16 17:40:06 +00:00
public function getId(): string {}
2019-10-13 18:57:09 +00:00
/** @implementation-alias ReflectionClass::__clone */
private function __clone(): void {}
2019-10-13 18:57:09 +00:00
private function __construct() {}
}
/** @not-serializable */
class ReflectionAttribute implements Reflector
{
/**
* @var int
* @cvalue REFLECTION_ATTRIBUTE_IS_INSTANCEOF
*/
public const IS_INSTANCEOF = UNKNOWN;
public function getName(): string {}
public function getTarget(): int {}
public function isRepeated(): bool {}
public function getArguments(): array {}
public function newInstance(): object {}
public function __toString(): string {}
private function __clone(): void {}
private function __construct() {}
}
class ReflectionEnum extends ReflectionClass
{
public function __construct(object|string $objectOrClass) {}
public function hasCase(string $name): bool {}
public function getCase(string $name): ReflectionEnumUnitCase {}
public function getCases(): array {}
public function isBacked(): bool {}
public function getBackingType(): ?ReflectionNamedType {}
}
class ReflectionEnumUnitCase extends ReflectionClassConstant
{
public function __construct(object|string $class, string $constant) {}
public function getEnum(): ReflectionEnum {}
/**
* @implementation-alias ReflectionClassConstant::getValue
* @no-verify
*/
public function getValue(): UnitEnum {}
}
class ReflectionEnumBackedCase extends ReflectionEnumUnitCase
{
public function __construct(object|string $class, string $constant) {}
public function getBackingValue(): int|string {}
}
/** @not-serializable */
final class ReflectionFiber
{
public function __construct(Fiber $fiber) {}
public function getFiber(): Fiber {}
public function getExecutingFile(): ?string {}
public function getExecutingLine(): ?int {}
public function getCallable(): callable {}
public function getTrace(int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT): array {}
}