(PHP 5, PHP 7, PHP 8)
The ReflectionClass class reports information about a class.
$objectOrClass
$argument
$return
false
$name
null
$flags
$filter
$object
&$default
$interface
$class
...$args
$args
$initializer
$options
$factory
$value
Name of the class. Read-only, throws ReflectionException in attempt to write.
ReflectionClass::IS_IMPLICIT_ABSTRACT
Indicates the class is abstract because it has some abstract methods.
ReflectionClass::IS_EXPLICIT_ABSTRACT
Indicates the class is abstract because of its definition.
ReflectionClass::IS_FINAL
Indicates the class is final.
ReflectionClass::IS_READONLY
Indicates the class is readonly.
ReflectionClass::SKIP_INITIALIZATION_ON_SERIALIZE
Indicates that serialize() should not trigger initialization of a lazy object.
ReflectionClass::SKIP_DESTRUCTOR
Indicates an object destructor should not be called when resetting it as lazy.