Total Complexity | 3 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Coverage | 75% |
Changes | 0 |
1 | <?php |
||
12 | class TwigRenderer extends AbstractBaseRenderer implements RendererInterface |
||
13 | { |
||
14 | /** |
||
15 | * Twig |
||
16 | * |
||
17 | * @var \Twig\Environment |
||
18 | */ |
||
19 | protected $twig; |
||
20 | |||
21 | /** |
||
22 | * Extension |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $extension = 'html'; |
||
27 | |||
28 | /** |
||
29 | * Constructor |
||
30 | * |
||
31 | * @param \Twig_Environment |
||
32 | */ |
||
33 | 1 | public function __construct(Environment $twig) |
|
34 | { |
||
35 | 1 | $this->twig = $twig; |
|
36 | 1 | } |
|
37 | |||
38 | /** |
||
39 | * Gets the Twig instance |
||
40 | * |
||
41 | * @return \Twig\Environment |
||
42 | */ |
||
43 | public function getTwig(): Environment |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * @inheritDoc |
||
50 | */ |
||
51 | 1 | public function render(ViewInterface $render): string |
|
58 |