ReflectionClass::newInstance

( excerpt from http://php.net/manual/en/reflectionclass.newinstance.php )

public function newInstance(
  ...$args,
);

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

Parameters

  • ...$args