1 | <?php |
||
13 | abstract class BaseEmailAction implements ActionInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var \Netgen\InformationCollection\API\MailerInterface |
||
17 | */ |
||
18 | protected $mailer; |
||
19 | |||
20 | /** |
||
21 | * @var \Netgen\InformationCollection\Core\Factory\BaseEmailDataFactory |
||
22 | */ |
||
23 | protected $factory; |
||
24 | |||
25 | /** |
||
26 | * EmailAction constructor. |
||
27 | * |
||
28 | * @param \Netgen\InformationCollection\API\MailerInterface $mailer |
||
29 | * @param \Netgen\InformationCollection\Core\Factory\BaseEmailDataFactory $factory |
||
30 | */ |
||
31 | public function __construct(MailerInterface $mailer, BaseEmailDataFactory $factory) |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | public function act(InformationCollected $event): void |
||
50 | |||
51 | abstract protected function throwException(EmailNotSentException $exception); |
||
52 | } |
||
53 |