1 | <?php |
||
19 | class DirectionResponse |
||
20 | { |
||
21 | /** |
||
22 | * @var string|null |
||
23 | */ |
||
24 | private $status; |
||
25 | |||
26 | /** |
||
27 | * @var DirectionRequestInterface|null |
||
28 | */ |
||
29 | private $request; |
||
30 | |||
31 | /** |
||
32 | * @var DirectionRoute[] |
||
33 | */ |
||
34 | private $routes = []; |
||
35 | |||
36 | /** |
||
37 | * @var DirectionGeocoded[] |
||
38 | */ |
||
39 | private $geocodedWaypoints = []; |
||
40 | |||
41 | /** |
||
42 | * @var string[] |
||
43 | */ |
||
44 | private $availableTravelModes = []; |
||
45 | |||
46 | /** |
||
47 | * @return bool |
||
48 | */ |
||
49 | 8 | public function hasStatus() |
|
53 | |||
54 | /** |
||
55 | * @return string|null |
||
56 | */ |
||
57 | 8 | public function getStatus() |
|
61 | |||
62 | /** |
||
63 | * @param string|null $status |
||
64 | */ |
||
65 | 4 | public function setStatus($status = null) |
|
69 | |||
70 | /** |
||
71 | * @return bool |
||
72 | */ |
||
73 | 8 | public function hasRequest() |
|
77 | |||
78 | /** |
||
79 | * @return DirectionRequestInterface|null |
||
80 | */ |
||
81 | 8 | public function getRequest() |
|
85 | |||
86 | 4 | public function setRequest(DirectionRequestInterface $request = null) |
|
90 | |||
91 | /** |
||
92 | * @return bool |
||
93 | */ |
||
94 | 20 | public function hasRoutes() |
|
98 | |||
99 | /** |
||
100 | * @return DirectionRoute[] |
||
101 | */ |
||
102 | 20 | public function getRoutes() |
|
106 | |||
107 | /** |
||
108 | * @param DirectionRoute[] $routes |
||
109 | */ |
||
110 | 8 | public function setRoutes(array $routes) |
|
115 | |||
116 | /** |
||
117 | * @param DirectionRoute[] $routes |
||
118 | */ |
||
119 | 8 | public function addRoutes(array $routes) |
|
125 | |||
126 | /** |
||
127 | * @return bool |
||
128 | */ |
||
129 | 16 | public function hasRoute(DirectionRoute $route) |
|
133 | |||
134 | 16 | public function addRoute(DirectionRoute $route) |
|
140 | |||
141 | 4 | public function removeRoute(DirectionRoute $route) |
|
146 | |||
147 | /** |
||
148 | * @return bool |
||
149 | */ |
||
150 | 20 | public function hasGeocodedWaypoints() |
|
154 | |||
155 | /** |
||
156 | * @return DirectionGeocoded[] |
||
157 | */ |
||
158 | 20 | public function getGeocodedWaypoints() |
|
162 | |||
163 | /** |
||
164 | * @param DirectionGeocoded[] $geocodedWaypoints |
||
165 | */ |
||
166 | 8 | public function setGeocodedWaypoints(array $geocodedWaypoints) |
|
171 | |||
172 | /** |
||
173 | * @param DirectionGeocoded[] $geocodedWaypoints |
||
174 | */ |
||
175 | 8 | public function addGeocodedWaypoints(array $geocodedWaypoints) |
|
181 | |||
182 | /** |
||
183 | * @return bool |
||
184 | */ |
||
185 | 16 | public function hasGeocodedWaypoint(DirectionGeocoded $geocodedWaypoint) |
|
189 | |||
190 | 16 | public function addGeocodedWaypoint(DirectionGeocoded $geocodedWaypoint) |
|
196 | |||
197 | 4 | public function removeGeocodedWaypoint(DirectionGeocoded $geocodedWaypoint) |
|
202 | |||
203 | /** |
||
204 | * @return bool |
||
205 | */ |
||
206 | 20 | public function hasAvailableTravelModes() |
|
210 | |||
211 | /** |
||
212 | * @return string[] |
||
213 | */ |
||
214 | 20 | public function getAvailableTravelModes() |
|
218 | |||
219 | /** |
||
220 | * @param string[] $availableTravelModes |
||
221 | */ |
||
222 | 8 | public function setAvailableTravelModes(array $availableTravelModes) |
|
227 | |||
228 | /** |
||
229 | * @param string[] $availableTravelModes |
||
230 | */ |
||
231 | 8 | public function addAvailableTravelModes(array $availableTravelModes) |
|
237 | |||
238 | /** |
||
239 | * @param string $availableTravelMode |
||
240 | * |
||
241 | * @return bool |
||
242 | */ |
||
243 | 16 | public function hasAvailableTravelMode($availableTravelMode) |
|
247 | |||
248 | /** |
||
249 | * @param string $availableTravelMode |
||
250 | */ |
||
251 | 16 | public function addAvailableTravelMode($availableTravelMode) |
|
257 | |||
258 | /** |
||
259 | * @param string $availableTravelMode |
||
260 | */ |
||
261 | 4 | public function removeAvailableTravelMode($availableTravelMode) |
|
266 | } |
||
267 |