serialisation Delay
This commit is contained in:
parent
9084233540
commit
612b946db6
|
@ -115,6 +115,13 @@ class Delay {
|
||||||
$this->repr = $repr;
|
$this->repr = $repr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function __serialize(): array {
|
||||||
|
return [$this->dest, $this->repr];
|
||||||
|
}
|
||||||
|
function __unserialize(array $data): void {
|
||||||
|
[$this->dest, $this->repr] = $data;
|
||||||
|
}
|
||||||
|
|
||||||
/** @var DateTime */
|
/** @var DateTime */
|
||||||
protected $dest;
|
protected $dest;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue