ReflectionClass::newInstanceArgs

( excerpt from http://php

public function newInstanceArgs(
  Traversable<mixed> $args = array (
),
);

net/manual/en/reflectionclass.newinstanceargs.php )

Creates a new instance of the class, the given arguments are passed to the class constructor.

Parameters

Return Values

  • mixed - Returns a new instance of the class.