Total Complexity | 8 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 75% |
Changes | 0 |
1 | <?php |
||
12 | class EngineRegistry |
||
13 | { |
||
14 | private $extensions = []; |
||
15 | |||
16 | 37 | public function registerEngine($extensions, $factory) |
|
20 | } |
||
21 | 37 | } |
|
22 | |||
23 | 29 | public function getSupportedExtensions() |
|
26 | } |
||
27 | |||
28 | /** |
||
29 | * @param $templateFile |
||
30 | * @return AbstractEngine |
||
31 | * @throws FactoryException |
||
32 | * @throws TemplateEngineNotFoundException |
||
33 | */ |
||
34 | 28 | public function getEngineInstance($templateFile) : AbstractEngine |
|
52 |