The ReflectionAttribute classReflectionAttribute
&reftitle.intro;
The ReflectionAttribute class provides information about
an Attribute.
&reftitle.classsynopsis;
ReflectionAttributeimplementsReflector&Constants;publicconstintReflectionAttribute::IS_INSTANCEOF&Properties;publicstringname&Methods;
&reftitle.properties;
name
The name of the attribute.
&reftitle.constants;
ReflectionAttribute FlagsReflectionAttribute::IS_INSTANCEOFint
Retrieve attributes using an
instanceof check.
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.
&reftitle.changelog;
&Version;&Description;8.4.0
All class constants are now typed.
8.4.0
Added ReflectionAttribute::$name.
&reference.reflection.entities.reflectionattribute;