From 1b2705291d54222d3de10f93ed7a2bcdb0a159ee Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 25 Aug 2019 21:44:11 +0200 Subject: [PATCH] start implementing heap --- Stdlib/Base/Address.php | 10 +++++++--- Stdlib/Base/Heap.php | 0 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 Stdlib/Base/Heap.php diff --git a/Stdlib/Base/Address.php b/Stdlib/Base/Address.php index 2dca46b28..a7dfcd21b 100644 --- a/Stdlib/Base/Address.php +++ b/Stdlib/Base/Address.php @@ -44,10 +44,10 @@ class Address implements \JsonSerializable /** * Location. * - * @var null|Location + * @var Location * @since 1.0.0 */ - private ?Location $location = null; + private Location $location; /** * Constructor. @@ -150,6 +150,10 @@ class Address implements \JsonSerializable */ public function toArray() : array { - return ['recipient' => $this->recipient, 'fao' => $this->fao, 'location' => $this->location->toArray()]; + return [ + 'recipient' => $this->recipient, + 'fao' => $this->fao, + 'location' => $this->location->toArray() + ]; } } diff --git a/Stdlib/Base/Heap.php b/Stdlib/Base/Heap.php new file mode 100644 index 000000000..e69de29bb