| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 12 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php namespace Tarsana\Command\Template\Twig;  | 
            ||
| 26 | public function init(string $templatesPath, string $cachePath = null) : TemplateLoaderInterface  | 
            ||
| 27 |     { | 
            ||
| 28 | $loader = new \Twig_Loader_Filesystem($templatesPath);  | 
            ||
| 29 |         if (null !== $cachePath) { | 
            ||
| 30 | $this->env = new \Twig_Environment($loader, [  | 
            ||
| 31 | 'cache' => $cachePath,  | 
            ||
| 32 | ]);  | 
            ||
| 33 |         } else { | 
            ||
| 34 | $this->env = new \Twig_Environment($loader);  | 
            ||
| 35 | }  | 
            ||
| 36 | return $this;  | 
            ||
| 37 | }  | 
            ||
| 38 | |||
| 51 |