9 public function __serialize(): array
11 return (array)unserialize($this->serialize(), [
'allowed_classes' =>
false]);
17 public function serialize(): string
19 return serialize(get_object_vars($this));
22 public function __unserialize($data): void
24 $this->unserialize($data);
30 public function unserialize($serializedData): void
32 $data = $serializedData;
36 $data = unserialize($data, [
'allowed_classes' =>
false]);
39 foreach ($data as $key => $value)