Total Complexity | 2 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class TwigRenderer extends Table\AOutput |
||
17 | { |
||
18 | protected string $templatePath = ''; |
||
19 | protected ArrayLoader $loader; |
||
20 | protected Environment $twig; |
||
21 | |||
22 | public function __construct(Table $table) |
||
23 | { |
||
24 | parent::__construct($table); |
||
25 | $this->templatePath = __DIR__ . '/../shared-templates/table.html.twig'; |
||
26 | $this->loader = new ArrayLoader(); |
||
27 | $this->twig = new Environment($this->loader); |
||
28 | } |
||
29 | |||
30 | public function render(): string |
||
35 | } |
||
36 | } |
||
37 |