1 | <?php |
||
18 | class SwiftMailerSender extends AbstractSender |
||
19 | { |
||
20 | /** |
||
21 | * @var Swift_Mailer |
||
22 | */ |
||
23 | protected $mailer; |
||
24 | |||
25 | /** |
||
26 | * SwiftMailerSender constructor. |
||
27 | * |
||
28 | * @param Swift_Mailer $mailer |
||
29 | */ |
||
30 | public function __construct(Swift_Mailer $mailer) |
||
34 | |||
35 | /** |
||
36 | * Send email to receiver |
||
37 | * |
||
38 | * @param TemplateInterface $template |
||
39 | * @param array|string $emails |
||
40 | * |
||
41 | * @return bool |
||
42 | */ |
||
43 | public function send(TemplateInterface $template, $emails): bool |
||
64 | } |
||
65 |