| Total Complexity | 3 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 70% |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class RenderFactory |
||
| 12 | { |
||
| 13 | private const RENDERS = [ |
||
| 14 | Assets::RENDER_HTML => [ |
||
| 15 | 'css' => Css::class, |
||
| 16 | 'js' => Js::class |
||
| 17 | ] |
||
| 18 | ]; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param string $type |
||
| 22 | * @param Environment $environment |
||
| 23 | * @param string $render |
||
| 24 | * @return RenderInterface |
||
| 25 | * @throws \Exception |
||
| 26 | */ |
||
| 27 | 15 | public static function getRender( |
|
| 47 |