Nelmio\Alice\Generator\Instantiator\Chainable\NoCallerMethodCallInstantiator::createInstance PHP Method

createInstance() protected method

protected createInstance ( Nelmio\Alice\FixtureInterface $fixture )
$fixture Nelmio\Alice\FixtureInterface
    protected function createInstance(FixtureInterface $fixture)
    {
        list($class, $arguments) = [$fixture->getClassName(), $fixture->getSpecs()->getConstructor()->getArguments()];
        return new $class(...$arguments);
    }
NoCallerMethodCallInstantiator