ReflectionClass::newInstanceArgs
( excerpt from http://php.net/manual/en/reflectionclass.newinstanceargs.php )
public function newInstanceArgs(
Traversable<mixed> $args = array (
),
);
Creates a new instance of the class, the given arguments are passed to the class constructor.
Parameters
Returns
mixed
- Returns a new instance of the class.