Remove @internal annotations for the serilize methods

This commit is contained in:
François Pluchino 2019-07-01 10:51:14 +02:00
parent 0d5258a4c7
commit 8544a35e52
2 changed files with 0 additions and 12 deletions

View File

@ -130,17 +130,11 @@ class Message extends RawMessage
return bin2hex(random_bytes(16)).strstr($email, '@');
}
/**
* @internal
*/
public function __serialize(): array
{
return [$this->headers, $this->body];
}
/**
* @internal
*/
public function __unserialize(array $data): void
{
[$this->headers, $this->body] = $data;

View File

@ -69,17 +69,11 @@ class RawMessage implements \Serializable
$this->__unserialize(unserialize($serialized));
}
/**
* @internal
*/
public function __serialize(): array
{
return [$this->message];
}
/**
* @internal
*/
public function __unserialize(array $data): void
{
[$this->message] = $data;