1 | <?php |
||
23 | class BatchGeocoded |
||
24 | { |
||
25 | /** |
||
26 | * The name of the provider. |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $providerName; |
||
31 | |||
32 | /** |
||
33 | * The query. |
||
34 | * |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $query; |
||
38 | |||
39 | /** |
||
40 | * The exception message. |
||
41 | * |
||
42 | * @var string |
||
43 | */ |
||
44 | protected $exception; |
||
45 | |||
46 | /** |
||
47 | * The Location object. |
||
48 | * |
||
49 | * @var Location |
||
50 | */ |
||
51 | protected $address; |
||
52 | |||
53 | /** |
||
54 | * Get the name of the provider. |
||
55 | * |
||
56 | * @return string The name of the provider. |
||
57 | */ |
||
58 | 13 | public function getProviderName() |
|
62 | |||
63 | /** |
||
64 | * Set the name of the provider. |
||
65 | * |
||
66 | * @param string $providerName The name of the provider. |
||
67 | */ |
||
68 | 16 | public function setProviderName($providerName) |
|
72 | |||
73 | /** |
||
74 | * Get the query. |
||
75 | * |
||
76 | * @return string The query. |
||
77 | */ |
||
78 | 13 | public function getQuery() |
|
82 | |||
83 | /** |
||
84 | * Set the query. |
||
85 | * |
||
86 | * @param string $query The query. |
||
87 | */ |
||
88 | 16 | public function setQuery($query) |
|
92 | |||
93 | /** |
||
94 | * Get the exception message. |
||
95 | * |
||
96 | * @return string The exception message. |
||
97 | */ |
||
98 | 5 | public function getExceptionMessage() |
|
102 | |||
103 | /** |
||
104 | * Set the exception message. |
||
105 | * |
||
106 | * @param string $exception The exception message. |
||
107 | */ |
||
108 | 16 | public function setExceptionMessage($exception) |
|
112 | |||
113 | /** |
||
114 | * Get the address |
||
115 | * |
||
116 | * @return Location |
||
117 | */ |
||
118 | 4 | public function getAddress() |
|
122 | |||
123 | /** |
||
124 | * Set the address |
||
125 | * |
||
126 | * @param Location $address |
||
127 | */ |
||
128 | 14 | public function setAddress($address) |
|
132 | |||
133 | /** |
||
134 | * Returns an array of coordinates (latitude, longitude). |
||
135 | * |
||
136 | * @return Coordinates|null |
||
137 | */ |
||
138 | 21 | public function getCoordinates() |
|
146 | |||
147 | /** |
||
148 | * Returns the latitude value. |
||
149 | * |
||
150 | * @return double |
||
151 | */ |
||
152 | 21 | public function getLatitude() |
|
160 | |||
161 | /** |
||
162 | * Returns the longitude value. |
||
163 | * |
||
164 | * @return double |
||
165 | */ |
||
166 | 21 | public function getLongitude() |
|
174 | |||
175 | /** |
||
176 | * Create an instance from an array, used from cache libraries. |
||
177 | * |
||
178 | * @param array $data |
||
179 | */ |
||
180 | 6 | public function fromArray(array $data = []) |
|
195 | |||
196 | /** |
||
197 | * Router all other methods call directly to our address object |
||
198 | * |
||
199 | * @param $method |
||
200 | * @param $args |
||
201 | * @return mixed |
||
202 | */ |
||
203 | 1 | public function __call($method, $args) |
|
211 | } |
||
212 |