Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function toArray() |
||
22 | { |
||
23 | return $this->withLocale($this->locale, function () { |
||
24 | Container::getInstance()->call([$this, 'build']); |
||
25 | |||
26 | $mail = $this; |
||
27 | return [ |
||
28 | 'from' => $mail->from, |
||
29 | 'to' => $mail->to, |
||
30 | 'cc' => $mail->cc, |
||
31 | 'bcc' => $mail->bcc, |
||
32 | 'subject' => $mail->subject, |
||
33 | 'body' => $mail->getPlainText(), |
||
34 | ]; |
||
38 |