(PHP 8)
ReflectionAttribute::newInstance — Instantiates the attribute class represented by this ReflectionAttribute class and arguments
public ReflectionAttribute::newInstance(): object
Instantiates the attribute class represented by this ReflectionAttribute class and arguments.
This function has no parameters.
New instance of the attribute.
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/reflectionattribute.newinstance.php