diff --git a/src/Mailer/PersistableMessage.php b/src/Mailer/PersistableMessage.php index 9ce12e0..683c670 100644 --- a/src/Mailer/PersistableMessage.php +++ b/src/Mailer/PersistableMessage.php @@ -11,16 +11,16 @@ public function __construct(Message $email = null) if ($email === null) return; $this->createFromArray($email->jsonSerialize()); - $this->_message = $email->message; - $this->_htmlMessage = $email->htmlMessage; - $this->_textMessage = $email->textMessage; + $this->message = $email->message; + $this->htmlMessage = $email->htmlMessage; + $this->textMessage = $email->textMessage; } public function jsonSerialize(): array { $array = parent::jsonSerialize(); - $properties = ['_message', '_htmlMessage', '_textMessage']; + $properties = ['message', 'htmlMessage', 'textMessage']; foreach($properties as $property) $array[$property] = $this->{$property}; return $array;