(PHP 5, PHP 7, PHP 8)
The ReflectionClass class reports information about a class.
Name of the class. Read-only, throws ReflectionException in attempt to write.
ReflectionClass::IS_IMPLICIT_ABSTRACT
int
Indicates the class is abstract because it has some abstract methods.
ReflectionClass::IS_EXPLICIT_ABSTRACT
int
Indicates the class is abstract because of its definition.
ReflectionClass::IS_FINAL
int
Indicates the class is final.
ReflectionClass::IS_READONLY
int
Indicates the class is readonly.
ReflectionClass::SKIP_INITIALIZATION_ON_SERIALIZE
int
Indicates that serialize() should not trigger initialization of a lazy object.
ReflectionClass::SKIP_DESTRUCTOR
int
Indicates an object destructor should not be called when resetting it as lazy.
| Version | Description |
|---|---|
| 8.4.0 | The class constants are now typed. |
| 8.0.0 | ReflectionClass::export() was removed. |