ReflectionAttribute::getArgumentsGets the arguments passed to the attribute Descriptionpublic array ReflectionAttribute::getArguments()
Gets the arguments passed to the attribute.
The arguments are constant expressions and are evaluated when this method
is called. Evaluating an argument may autoload a class referenced by the
expression, for example through a class constant, an enum case, or an
object created with ParametersThis function has no parameters. Return ValuesThe arguments passed to the attribute, with integer keys for positional arguments and string keys for named arguments. Errors/ExceptionsIf evaluating an argument throws an error or exception, it is propagated. This can happen when the argument references a class that cannot be loaded, or a constant that is not defined. |