1 | <?php |
||
24 | class MailEvent extends Event |
||
25 | { |
||
26 | const TYPE_WELCOME = 'welcome'; |
||
27 | const TYPE_RECOVERY = 'recovery'; |
||
28 | const TYPE_CONFIRM = 'confirm'; |
||
29 | const TYPE_RECONFIRM = 'reconfirm'; |
||
30 | |||
31 | const EVENT_BEFORE_SEND_MAIL = 'beforeSendMail'; |
||
32 | const EVENT_AFTER_SEND_MAIL = 'afterSendMail'; |
||
33 | |||
34 | protected $type; |
||
35 | protected $user; |
||
36 | protected $mailService; |
||
37 | protected $exception; |
||
38 | |||
39 | 9 | public function __construct($type, User $user, MailService $mailService, $exception, $config = []) |
|
48 | |||
49 | public function getType() |
||
53 | |||
54 | public function getUser() |
||
58 | |||
59 | public function getMailService() |
||
63 | |||
64 | public function getException() |
||
68 | } |
||
69 |