| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | class TemplateFactory |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Return template from available list of templates. |
||
| 14 | * |
||
| 15 | * @param string $name - available templates see in Templates class. |
||
| 16 | * |
||
| 17 | * @return TemplateInterface |
||
| 18 | * @throws FlashTemplateNotFoundException |
||
| 19 | */ |
||
| 20 | 61 | public static function create(string $name = Templates::BASE): TemplateInterface |
|
| 31 |