The ReflectionClass class
The ReflectionClass class reports information about a class.
Intro
The ReflectionClass class reports information about a class.
Class synopsis
Properties
nameName of the class. Read-only, throws
ReflectionExceptionin attempt to write.
Predefined Constants
ReflectionClass Modifiers
ReflectionClass::IS_IMPLICIT_ABSTRACTintIndicates the class is abstract because it has some abstract methods.
ReflectionClass::IS_EXPLICIT_ABSTRACTintIndicates the class is abstract because of its definition.
ReflectionClass::IS_FINALintIndicates the class is final.
ReflectionClass::IS_READONLYintIndicates the class is readonly.
ReflectionClass::SKIP_INITIALIZATION_ON_SERIALIZEintIndicates that
serialize()should not trigger initialization of a lazy object.ReflectionClass::SKIP_DESTRUCTORintIndicates an object destructor should not be called when resetting it as lazy.
Changelog
| Version | Description |
|---|---|
| 8.4.0 | The class constants are now typed. |
| 8.0.0 | ReflectionClass::export was removed. |
Reflectionclass