ReflectionAttribute::newInstanceInstantiates the attribute class represented by this ReflectionAttribute class and arguments Description
public object ReflectionAttribute::newInstance()
Instantiates the attribute class represented by this ReflectionAttribute class and arguments. ParametersThis function has no parameters. Return ValuesNew instance of the attribute. Errors/Exceptions
Throws an Error if the attribute class cannot
be loaded, or if the class is not declared with
Throws an Error if the attribute is applied
to a target it cannot be used on, or if it is applied more than once and is
not declared with Errors and exceptions thrown by the attribute constructor are propagated. Changelog
|