1 | <?php |
||
13 | class SendEmailAfterExecution implements CheckInterface |
||
14 | { |
||
15 | /** @var Mailer */ |
||
16 | private $mailer; |
||
17 | |||
18 | /** @var Config */ |
||
19 | private $config; |
||
20 | |||
21 | /** @var View */ |
||
22 | private $view; |
||
23 | |||
24 | /** @var Connection */ |
||
25 | private $connection; |
||
26 | |||
27 | |||
28 | |||
29 | public function __construct(Mailer $mailer, Config $config, View $view, Connection $connection) |
||
36 | |||
37 | |||
38 | |||
39 | public function execute(Candidate $candidate): bool |
||
46 | |||
47 | |||
48 | |||
49 | /** |
||
50 | * @inheritDoc |
||
51 | */ |
||
52 | public function getErrorCode(): string |
||
56 | |||
57 | |||
58 | |||
59 | /** |
||
60 | * @inheritDoc |
||
61 | */ |
||
62 | public function getLastErrorMessage(): string |
||
66 | |||
67 | |||
68 | |||
69 | private function composeMessage(Candidate $candidate): Swift_Message |
||
87 | } |
||
88 |