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