1 | <?php namespace OutlookRestClient\Facade\Requests; |
||
19 | final class LocationVO implements IValueObject |
||
20 | { |
||
21 | /** |
||
22 | * @var AddressVO |
||
23 | */ |
||
24 | private $address; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $location_name; |
||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | private $location_lat; |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | private $location_lng; |
||
39 | |||
40 | /** |
||
41 | * LocationVO constructor. |
||
42 | * @param string $location_name |
||
43 | * @param AddressVO $address |
||
44 | * @param string $location_lat |
||
45 | * @param string $location_lng |
||
46 | */ |
||
47 | public function __construct($location_name, AddressVO $address, $location_lat = null, $location_lng = null) |
||
54 | |||
55 | /** |
||
56 | * @return AddressVO |
||
57 | */ |
||
58 | public function getAddress() |
||
62 | |||
63 | /** |
||
64 | * @return string |
||
65 | */ |
||
66 | public function getLocationName() |
||
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | public function getLocationLat() |
||
78 | |||
79 | /** |
||
80 | * @return string |
||
81 | */ |
||
82 | public function getLocationLng() |
||
86 | |||
87 | /** |
||
88 | * @return array |
||
89 | */ |
||
90 | public function toArray() |
||
103 | } |