Наследование: implements ArrayAcces\ArrayAccess, implements Illuminate\Contracts\Support\Arrayable, implements Illuminate\Contracts\Support\Jsonable, implements JsonSerializabl\JsonSerializable
Пример #1
0
 public function __construct($message)
 {
     if (is_a($message, 'Agouti\\LaravelMailcatcher\\Model')) {
         //$data = $message->toArray();
         return $message;
     } else {
         $data = $this->parseMessage($message);
     }
     return parent::__construct($data);
 }