| Total Complexity | 1 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 15 | class Template |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Given the email tempalte name and its params |
||
| 19 | * - create the files |
||
| 20 | * - render it with the variables |
||
| 21 | * - return the content string for use to use anywhere. |
||
| 22 | * |
||
| 23 | * @param string $name |
||
| 24 | * @param array $params |
||
| 25 | * |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | public static function generate(string $name, array $params) : string |
||
| 45 |