| 1 | <?php |
||
| 12 | class MailListenerMock extends AbstractMailListener |
||
| 13 | { |
||
| 14 | private $onPreSendCalled = false; |
||
| 15 | private $onPostSendCalled = false; |
||
| 16 | private $onSendErrorCalled = false; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Called before sending the email |
||
| 20 | * @param MailEvent $e |
||
| 21 | * @return mixed |
||
| 22 | */ |
||
| 23 | public function onPreSend(MailEvent $e) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Called after sending the email |
||
| 30 | * @param MailEvent $e |
||
| 31 | * @return mixed |
||
| 32 | */ |
||
| 33 | public function onPostSend(MailEvent $e) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Called if an error occurs while sending the email |
||
| 40 | * @param MailEvent $e |
||
| 41 | * @return mixed |
||
| 42 | */ |
||
| 43 | public function onSendError(MailEvent $e) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return bool |
||
| 50 | */ |
||
| 51 | public function isOnPreSendCalled() |
||
| 55 | /** |
||
| 56 | * @return bool |
||
| 57 | */ |
||
| 58 | public function isOnPostSendCalled() |
||
| 62 | /** |
||
| 63 | * @return bool |
||
| 64 | */ |
||
| 65 | public function isOnSendErrorCalled() |
||
| 69 | } |
||
| 70 |