diff --git a/src/BitPayKeyUtils/Util/Point.php b/src/BitPayKeyUtils/Util/Point.php index 568af52..df94228 100644 --- a/src/BitPayKeyUtils/Util/Point.php +++ b/src/BitPayKeyUtils/Util/Point.php @@ -87,4 +87,23 @@ public function unserialize($data) $this->y ) = unserialize($data); } + + /** + * @return array + */ + public function __serialize(): array + { + return array($this->x, $this->y); + } + + /** + * @param array $data + */ + public function __unserialize(array $data): void + { + list( + $this->x, + $this->y + ) = $data; + } }