public function getEngine()
    {
        if (null === $this->engine) {
            $this->setEngine(TemplateFactory::getEngine());
        }
        return $this->engine;
    }
public function getEngine()
    {
        if (null === $this->engine) {
            $this->setEngine(TemplateFactory::getEngine());
        }
        return $this->engine;
    }
public function getEngine ( ) { if ( null === $ this -> engine ) { $ this -> setEngine ( TemplateFactory :: getEngine ( ) ) ; } return $ this -> engine ; }
Returns the current template engine

If no template is provided a new one is created with default settings.

@return EngineInterface
Returns the current template engine