Kraken\Test\Simulation\Simulation::reflect PHP Method

reflect() public method

public reflect ( string $model, mixed[] $config = [] ) : object
$model string
$config mixed[]
return object
    public function reflect($model, $config = [])
    {
        foreach ($config as $key => $value) {
            if ($value === 'Kraken\\Loop\\Loop' || $value === 'Kraken\\Loop\\LoopInterface') {
                $config[$key] = $this->getLoop();
            }
        }
        return (new ReflectionClass($model))->newInstanceArgs($config);
    }