mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-10 22:18:40 +00:00
start implementing heap
This commit is contained in:
parent
a85d205cf3
commit
1b2705291d
|
|
@ -44,10 +44,10 @@ class Address implements \JsonSerializable
|
||||||
/**
|
/**
|
||||||
* Location.
|
* Location.
|
||||||
*
|
*
|
||||||
* @var null|Location
|
* @var Location
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private ?Location $location = null;
|
private Location $location;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
|
|
@ -150,6 +150,10 @@ class Address implements \JsonSerializable
|
||||||
*/
|
*/
|
||||||
public function toArray() : array
|
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