The ReflectionAttribute class
Guide
Edit on GitHub ✎
The ReflectionAttribute class provides information about an Attribute.
Intro
The ReflectionAttribute class provides information about an Attribute.
Class synopsis
class ReflectionAttribute implements Reflector { }
Properties
nameThe name of the attribute.
Predefined Constants
ReflectionAttribute Flags
ReflectionAttribute::IS_INSTANCEOFintRetrieve attributes using an
instanceofcheck.
Note
The values of these constants may change between PHP versions. It is recommended to always use the constants and not rely on the values directly.
Changelog
| Version | Description |
|---|---|
| 8.4.0 | All class constants are now typed. |
| 8.4.0 | Added ReflectionAttribute::$name. |
Reflectionattribute