1 | <?php |
||
4 | class MailRenderer |
||
5 | { |
||
6 | /** |
||
7 | * @var string |
||
8 | */ |
||
9 | protected $templatePath; |
||
10 | |||
11 | /** |
||
12 | * @var array |
||
13 | */ |
||
14 | protected $attributes; |
||
15 | |||
16 | /** |
||
17 | * MailRenderer constructor. |
||
18 | * |
||
19 | * @param string $templatePath |
||
20 | * @param array $attributes |
||
21 | */ |
||
22 | public function __construct($templatePath = '', $attributes = []) |
||
27 | |||
28 | /** |
||
29 | * Render a template |
||
30 | * @param string $template |
||
31 | * @param array $data |
||
32 | * |
||
33 | * @return string |
||
34 | * @throws \Exception |
||
35 | * @throws \Throwable |
||
36 | */ |
||
37 | public function render($template, array $data = []) |
||
65 | |||
66 | /** |
||
67 | * @param string $template |
||
68 | * @param array $data |
||
69 | */ |
||
70 | protected function protectedIncludeScope($template, array $data) |
||
75 | } |
||
76 |