serialisation Delay

This commit is contained in:
Jephté Clain 2024-05-16 12:14:29 +04:00
parent 9084233540
commit 612b946db6
1 changed files with 7 additions and 0 deletions

View File

@ -115,6 +115,13 @@ class Delay {
$this->repr = $repr;
}
function __serialize(): array {
return [$this->dest, $this->repr];
}
function __unserialize(array $data): void {
[$this->dest, $this->repr] = $data;
}
/** @var DateTime */
protected $dest;