| 1 | <?php |
||
| 22 | final class EmailSendEvent extends Event |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var mixed |
||
| 26 | */ |
||
| 27 | protected $message; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var string[] |
||
| 31 | */ |
||
| 32 | protected $recipients; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var EmailInterface |
||
| 36 | */ |
||
| 37 | protected $email; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var array |
||
| 41 | */ |
||
| 42 | protected $data; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @var string[] |
||
| 46 | */ |
||
| 47 | protected $replyTo; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param mixed $message |
||
| 51 | * @param array $recipients |
||
| 52 | * @param EmailInterface $email |
||
| 53 | * @param array $data |
||
| 54 | */ |
||
| 55 | public function __construct($message, EmailInterface $email, array $data, array $recipients = [], array $replyTo = []) |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return array |
||
| 66 | */ |
||
| 67 | public function getRecipients(): array |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @return EmailInterface |
||
| 74 | */ |
||
| 75 | public function getEmail(): EmailInterface |
||
| 79 | |||
| 80 | /** |
||
| 81 | * @return mixed |
||
| 82 | */ |
||
| 83 | public function getMessage() |
||
| 87 | |||
| 88 | /** |
||
| 89 | * @return array |
||
| 90 | */ |
||
| 91 | public function getData(): array |
||
| 95 | |||
| 96 | /** |
||
| 97 | * @return string[] |
||
| 98 | */ |
||
| 99 | public function getReplyTo(): array |
||
| 103 | } |
||
| 104 |