mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-20 05:18:42 +00:00
start implementing heap
This commit is contained in:
parent
a85d205cf3
commit
1b2705291d
|
|
@ -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
0
Stdlib/Base/Heap.php
Normal file
Loading…
Reference in New Issue
Block a user