public function setEngine($engine)
	{
		if (!($engine instanceof RendererGenerator))
		{
			$className  = 's9e\\TextFormatter\\Configurator\\RendererGenerators\\' . $engine;
			$reflection = new ReflectionClass($className);

			$engine = $reflection->newInstanceArgs(array_slice(func_get_args(), 1));
		}

		$this->engine = $engine;

		return $engine;
	}
public function setEngine($engine)
	{
		if (!($engine instanceof RendererGenerator))
		{
			$className  = 's9e\\TextFormatter\\Configurator\\RendererGenerators\\' . $engine;
			$reflection = new ReflectionClass($className);

			$engine = $reflection->newInstanceArgs(array_slice(func_get_args(), 1));
		}

		$this->engine = $engine;

		return $engine;
	}
public function setEngine ( $ engine ) { if ( ! ( $ engine instanceof RendererGenerator ) ) { $ className = 's9e\\TextFormatter\\Configurator\\RendererGenerators\\' . $ engine ; $ reflection = new ReflectionClass ( $ className ) ; $ engine = $ reflection -> newInstanceArgs ( array_slice ( func_get_args ( ) , 1 ) ) ; } $ this -> engine = $ engine ; return $ engine ; }
Set the RendererGenerator instance used

NOTE: extra parameters are passed to the RendererGenerator's constructor

@param  string|RendererGenerator $engine Engine name or instance of RendererGenerator
@return RendererGenerator                Instance of RendererGenerator
Set the RendererGenerator instance used