(PHP 8 >= 8.1.0)
ReflectionEnum 类报告有关枚举的信息。
public
ReflectionClass::getProperties(?int $filter
= null
): arraypublic
ReflectionClass::getProperty(string $name
): ReflectionPropertypublic
ReflectionClass::getReflectionConstant(string $name
): ReflectionClassConstant|falsepublic
ReflectionClass::getReflectionConstants(?int $filter
= null
): arraypublic
ReflectionClass::getShortName(): stringpublic
ReflectionClass::getStartLine(): int|falsepublic
ReflectionClass::getStaticProperties(): arraypublic
ReflectionClass::getStaticPropertyValue(string $name
, mixed &$def_value
= ?): mixedpublic
ReflectionClass::getTraitAliases(): arraypublic
ReflectionClass::getTraitNames(): arraypublic
ReflectionClass::getTraits(): arraypublic
ReflectionClass::hasConstant(string $name
): boolpublic
ReflectionClass::hasMethod(string $name
): boolpublic
ReflectionClass::hasProperty(string $name
): boolpublic
ReflectionClass::implementsInterface(ReflectionClass|string $interface
): boolpublic
ReflectionClass::initializeLazyObject(object $object
): objectpublic
ReflectionClass::inNamespace(): boolpublic
ReflectionClass::isAbstract(): boolpublic
ReflectionClass::isAnonymous(): boolpublic
ReflectionClass::isCloneable(): boolpublic
ReflectionClass::isEnum(): boolpublic
ReflectionClass::isFinal(): boolpublic
ReflectionClass::isInstance(object $object
): boolpublic
ReflectionClass::isInstantiable(): boolpublic
ReflectionClass::isInterface(): boolpublic
ReflectionClass::isInternal(): boolpublic
ReflectionClass::isIterable(): boolpublic
ReflectionClass::isReadOnly(): boolpublic
ReflectionClass::isSubclassOf(ReflectionClass|string $class
): boolpublic
ReflectionClass::isTrait(): boolpublic
ReflectionClass::isUninitializedLazyObject(object $object
): boolpublic
ReflectionClass::isUserDefined(): boolpublic
ReflectionClass::markLazyObjectAsInitialized(object $object
): objectpublic
ReflectionClass::newInstance(mixed ...$args
): objectpublic
ReflectionClass::newInstanceArgs(array $args
= []): ?objectpublic
ReflectionClass::newInstanceWithoutConstructor(): objectpublic
ReflectionClass::newLazyGhost(callable $initializer
, int $options
= 0): objectpublic
ReflectionClass::newLazyProxy(callable $factory
, int $options
= 0): objectpublic
ReflectionClass::resetAsLazyGhost(object $object
, callable $initializer
, int $options
= 0): void