public function getApp(): App
    {
        if (!is_null($this->getTemplateEngine()->getApp())) {
            return $this->getTemplateEngine()->getApp();
        } else {
            throw new RuntimeException('Template engine is not initialized with application');
        }
    }
public function getApp(): App
    {
        if (!is_null($this->getTemplateEngine()->getApp())) {
            return $this->getTemplateEngine()->getApp();
        } else {
            throw new RuntimeException('Template engine is not initialized with application');
        }
    }
public function getApp ( ) : App { if ( ! is_null ( $ this -> getTemplateEngine ( ) -> getApp ( ) ) ) { return $ this -> getTemplateEngine ( ) -> getApp ( ) ; } else { throw new RuntimeException ( 'Template engine is not initialized with application' ) ; } }
Get application.

@return \Berlioz\Core\App
@throws \Berlioz\Core\Exception\RuntimeException if template engine is not initialized with application
Get application .