start implementing heap

This commit is contained in:
Dennis Eichhorn 2019-08-25 21:44:11 +02:00
parent a85d205cf3
commit 1b2705291d
2 changed files with 7 additions and 3 deletions

View File

@ -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()
];
}
}

0
Stdlib/Base/Heap.php Normal file
View File