PHP - Manual: ReflectionClassConstant::getAttributes
2024-11-14
(PHP 8)
ReflectionClassConstant::getAttributes — Gets Attributes
$name
= null
, int $flags
= 0): arrayReturns all attributes declared on this class constant as an array of ReflectionAttribute.
name
flags
Array of attributes, as a ReflectionAttribute object.
官方地址:https://www.php.net/manual/en/reflectionclassconstant.getattributes.php