Exemple #1
0
 public function toArrayComplete()
 {
     $attachments = $this->attachments;
     foreach ($attachments as &$attach) {
         $attach = $attach->toArray();
     }
     return parent::toArray() + ['date' => $this->date, 'subject' => $this->subject, 'sender' => $this->sender, 'sender_email' => $this->sender_email, 'sender_name' => $this->sender_name, 'to' => $this->to, 'to_email' => $this->to_email, 'to_name' => $this->to_name, 'to_count' => $this->to_count, 'cc' => $this->cc, 'bcc' => $this->bcc, 'replyto' => $this->replyto, 'receipt' => $this->receipt, 'spam' => $this->spam, 'contenttype' => $this->contenttype, 'text' => $this->text ? $this->text->toArray() : null, 'html' => $this->html ? $this->html->toArray() : null, 'attachments' => $attachments];
 }