ReflectionAttribute::newInstance
(PHP 8)
ReflectionAttribute::newInstance — Instantiates the attribute class represented by this ReflectionAttribute class and arguments
Açıklama
public function ReflectionAttribute::newInstance():
object
Bağımsız Değişkenler
Bu işlevin bağımsız değişkeni yoktur.
Dönen Değerler
New instance of the attribute.
Hatalar/İstisnalar
Throws an Error if the attribute is applied
to a target it cannot be used on. For internal attributes, this happens
here instead of at compile time when the declaration uses
#[\DelayedTargetValidation].