| Total Complexity | 2 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 66.67% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class TemplateExtension extends \Twig_Extension |
||
| 9 | { |
||
| 10 | protected const FUNCTION_NAME = 'template'; |
||
| 11 | |||
| 12 | protected const MODULE = 'Atomic'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @return array|\Twig_Function[] |
||
| 16 | */ |
||
| 17 | 1 | public function getFunctions(): array |
|
| 28 | ] |
||
| 29 | ) |
||
| 30 | ]; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param $templateName |
||
| 35 | * @param $templateModule |
||
| 36 | * |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | private function twigTemplate(string $templateName, string $templateModule): string |
||
| 44 | } |