PHP - Manual: ReflectionFunctionAbstract::getAttributes
2024-12-21
(PHP 8)
ReflectionFunctionAbstract::getAttributes — Gets Attributes
$name
= null
, int $flags
= 0): arrayReturns all attributes declared on this function or method as an array of ReflectionAttribute.
本函数还未编写文档,仅有参数列表。
name
flags
Array of attributes, as a ReflectionAttribute object.
官方地址:https://www.php.net/manual/en/reflectionfunctionabstract.getattributes.php