| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 57.14% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class Templater |
||
| 8 | { |
||
| 9 | protected $twigEnv; |
||
| 10 | protected $twigLoader; |
||
| 11 | |||
| 12 | 3 | public function __construct() |
|
| 13 | { |
||
| 14 | 3 | $this->twigLoader = new \Twig_Loader_Filesystem(__DIR__.'/../../../public/templates'); |
|
| 15 | 3 | $this->twigEnv = new \Twig_Environment($this->twigLoader); |
|
| 16 | 3 | } |
|
| 17 | |||
| 18 | public function render(string $file, array $params = []): string |
||
| 23 | } |
||
| 24 | } |
||
| 25 |