ReflectionClassConstant::getAttributes
(PHP 8)
ReflectionClassConstant::getAttributes — Gets Attributes
Description
$name
= null
, int $flags
= 0): arrayReturns all attributes declared on this class constant as an array of ReflectionAttribute.
Parameters
-
name
-
-
flags
-
Return Values
Array of attributes, as a ReflectionAttribute object.
See Also
- ReflectionClass::getAttributes() - Gets Attributes
- ReflectionFunctionAbstract::getAttributes() - Gets Attributes
- ReflectionParameter::getAttributes() - Gets Attributes
- ReflectionProperty::getAttributes() - Gets Attributes