1 | <?php |
||
5 | class Location implements \JsonSerializable |
||
6 | { |
||
7 | /** |
||
8 | * @var float |
||
9 | */ |
||
10 | private $latitude; |
||
11 | |||
12 | /** |
||
13 | * @var float |
||
14 | */ |
||
15 | private $longitude; |
||
16 | |||
17 | /** |
||
18 | * @param float $latitude |
||
19 | * @param float $longitude |
||
20 | */ |
||
21 | 6 | public function __construct($latitude, $longitude) |
|
30 | |||
31 | /** |
||
32 | * @return float |
||
33 | */ |
||
34 | 1 | public function getLatitude() |
|
38 | |||
39 | /** |
||
40 | * @return float |
||
41 | */ |
||
42 | 1 | public function getLongitude() |
|
46 | |||
47 | /** |
||
48 | * @return array |
||
49 | */ |
||
50 | 1 | public function jsonSerialize() |
|
57 | } |
||
58 |