Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
22 | trait MailerTrait { |
||
23 | |||
24 | /** |
||
25 | * Mailer. |
||
26 | * |
||
27 | * @var MailerInterface|null |
||
28 | */ |
||
29 | private $mailer; |
||
30 | |||
31 | /** |
||
32 | * Get the mailer. |
||
33 | * |
||
34 | * @return MailerInterface|null Returns the mailer. |
||
35 | */ |
||
36 | public function getMailer(): ?MailerInterface { |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * Set the mailer. |
||
42 | * |
||
43 | * @param MailerInterface|null $mailer The mailer. |
||
44 | * @return self Returns this instance. |
||
45 | */ |
||
46 | protected function setMailer(?MailerInterface $mailer): self { |
||
51 |