| 1 | <?php |
||
| 19 | trait MailerTrait |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var MailerInterface |
||
| 23 | */ |
||
| 24 | private $mailer; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Set optional service from services into application |
||
| 28 | * |
||
| 29 | * @param string $service Service name |
||
| 30 | */ |
||
| 31 | abstract protected function optionalService($service); |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return MailerInterface |
||
| 35 | */ |
||
| 36 | public function getMailer() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param MailerInterface $mailer |
||
| 46 | */ |
||
| 47 | protected function setMailer(MailerInterface $mailer) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return MailerInterface |
||
| 54 | */ |
||
| 55 | public function mail() |
||
| 59 | } |
||
| 60 |