Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
19 | final class TemplatesPanel implements IbarPanel |
||
20 | { |
||
21 | /** @var array<int,string> */ |
||
22 | private array $templates = []; |
||
23 | |||
24 | /** |
||
25 | * Initialize the panel. |
||
26 | */ |
||
27 | public function __construct(private Template $render) |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | public function getPanel(): string |
||
35 | { |
||
36 | return Helpers::capture(fn () => require __DIR__.'/templates/TemplatesPanel.panel.phtml'); |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | public function getTab(): string |
||
55 | } |
||
56 | } |
||
57 |