| @@ 37-45 (lines=9) @@ | ||
| 34 | /** |
|
| 35 | * @return array |
|
| 36 | */ |
|
| 37 | public function serialize() |
|
| 38 | { |
|
| 39 | return parent::serialize() + [ |
|
| 40 | 'coordinates' => [ |
|
| 41 | 'lat' => $this->coordinates->getLatitude()->toDouble(), |
|
| 42 | 'long' => $this->coordinates->getLongitude()->toDouble(), |
|
| 43 | ], |
|
| 44 | ]; |
|
| 45 | } |
|
| 46 | ||
| 47 | /** |
|
| 48 | * @param array $data |
|
| @@ 34-42 (lines=9) @@ | ||
| 31 | /** |
|
| 32 | * @return array |
|
| 33 | */ |
|
| 34 | public function serialize() |
|
| 35 | { |
|
| 36 | return parent::serialize() + [ |
|
| 37 | 'coordinates' => [ |
|
| 38 | 'lat' => $this->coordinates->getLatitude()->toDouble(), |
|
| 39 | 'long' => $this->coordinates->getLongitude()->toDouble(), |
|
| 40 | ], |
|
| 41 | ]; |
|
| 42 | } |
|
| 43 | ||
| 44 | /** |
|
| 45 | * @param array $data |
|