1 | <?php |
||
11 | class TemplateNotificationFactory |
||
12 | { |
||
13 | /** |
||
14 | * @var Template |
||
15 | */ |
||
16 | private $template; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $subjectTemplateNameFormat = '%s.subject'; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $bodyTemplateNameFormat = '%s.body'; |
||
27 | |||
28 | /** |
||
29 | * @param Template $template |
||
30 | */ |
||
31 | 1 | public function __construct(Template $template) |
|
35 | |||
36 | /** |
||
37 | * @param string $templateName |
||
38 | * @param array $templateVariables |
||
39 | * @param Destination $destination |
||
40 | * @param DeduplicationKey|null $deduplicationKey |
||
41 | * @return Notification |
||
42 | * @throws LoadFailedException |
||
43 | * @throws RenderFailedException |
||
44 | * @throws TemplateNotFoundException |
||
45 | */ |
||
46 | 1 | public function create( |
|
70 | } |
||
71 |