ReflectionFunctionAbstract::getAttributes
(PHP 8)
ReflectionFunctionAbstract::getAttributes — Gets Attributes
Description
$name
= null
, int $flags
= 0): arrayReturns all attributes declared on this function or method as an array of ReflectionAttribute.
This function is currently not documented; only its argument list is available.
Parameters
-
name
-
-
flags
-
Return Values
Array of attributes, as a ReflectionAttribute object.
See Also
- ReflectionClass::getAttributes() - Gets Attributes
- ReflectionClassConstant::getAttributes() - Gets Attributes
- ReflectionParameter::getAttributes() - Gets Attributes
- ReflectionProperty::getAttributes() - Gets Attributes