function Email::__serialize
@internal
Overrides Message::__serialize
File
-
vendor/
symfony/ mime/ Email.php, line 554
Class
- @author Fabien Potencier <fabien@symfony.com>
Namespace
Symfony\Component\MimeCode
public function __serialize() : array {
if (\is_resource($this->text)) {
$this->text = (new TextPart($this->text))
->getBody();
}
if (\is_resource($this->html)) {
$this->html = (new TextPart($this->html))
->getBody();
}
return [
$this->text,
$this->textCharset,
$this->html,
$this->htmlCharset,
$this->attachments,
parent::__serialize(),
];
}