| Total Complexity | 6 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class StuMail implements StuMailInterface |
||
| 9 | { |
||
| 10 | private Email $email; |
||
| 11 | |||
| 12 | public function __construct(private Mailer $mailer) |
||
| 13 | { |
||
| 14 | $this->email = new Email(); |
||
| 15 | } |
||
| 16 | |||
| 17 | public function setFrom(string $from): StuMailInterface |
||
| 18 | { |
||
| 19 | $this->email->from($from); |
||
| 20 | |||
| 21 | return $this; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function addTo(string $to): StuMailInterface |
||
| 25 | { |
||
| 26 | $this->email->to($to); |
||
| 27 | |||
| 28 | return $this; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function setSubject(string $subject): StuMailInterface |
||
| 32 | { |
||
| 33 | $this->email->subject($subject); |
||
| 34 | |||
| 35 | return $this; |
||
| 36 | } |
||
| 37 | |||
| 38 | public function setBody(string $text): StuMailInterface |
||
| 39 | { |
||
| 40 | $this->email->text($text); |
||
| 41 | |||
| 42 | return $this; |
||
| 43 | } |
||
| 44 | |||
| 45 | public function send(): void |
||
| 48 | } |
||
| 49 | } |
||
| 50 |