function TextPart::__sleep
2 calls to TextPart::__sleep()
- DataPart::__sleep in vendor/
symfony/ mime/ Part/ DataPart.php - DataPart::__sleep in vendor/
symfony/ mime/ Part/ DataPart.php
1 method overrides TextPart::__sleep()
- DataPart::__sleep in vendor/
symfony/ mime/ Part/ DataPart.php
File
-
vendor/
symfony/ mime/ Part/ TextPart.php, line 241
Class
- TextPart
- @author Fabien Potencier <fabien@symfony.com>
Namespace
Symfony\Component\Mime\PartCode
public function __sleep() : array {
// convert resources to strings for serialization
if (null !== $this->seekable) {
$this->body = $this->getBody();
$this->seekable = null;
}
$this->_headers = $this->getHeaders();
return [
'_headers',
'body',
'charset',
'subtype',
'disposition',
'name',
'encoding',
];
}