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