1 | <?php namespace Arcanedev\GeoLocation\Google\Directions; |
||
11 | class DirectionsResponse extends AbstractResponse |
||
12 | { |
||
13 | /* ----------------------------------------------------------------- |
||
14 | | Properties |
||
15 | | ----------------------------------------------------------------- |
||
16 | */ |
||
17 | |||
18 | /** @var array */ |
||
19 | protected $geocodedWaypoints; |
||
20 | |||
21 | /** |
||
22 | * The routes collection. |
||
23 | * |
||
24 | * @var \Arcanedev\GeoLocation\Google\Directions\Entities\RouteCollection |
||
25 | */ |
||
26 | protected $routes; |
||
27 | |||
28 | /* ----------------------------------------------------------------- |
||
29 | | Getters & Setters |
||
30 | | ----------------------------------------------------------------- |
||
31 | */ |
||
32 | |||
33 | /** |
||
34 | * Get the geocoded waypoints. |
||
35 | * |
||
36 | * @return array |
||
37 | */ |
||
38 | 6 | public function getGeocodedWaypoints() |
|
42 | |||
43 | /** |
||
44 | * Get the routes. |
||
45 | * |
||
46 | * @return \Arcanedev\GeoLocation\Google\Directions\Entities\RouteCollection |
||
47 | */ |
||
48 | 21 | public function getRoutes() |
|
58 | |||
59 | /* ----------------------------------------------------------------- |
||
60 | | Main Methods |
||
61 | | ----------------------------------------------------------------- |
||
62 | */ |
||
63 | |||
64 | /** |
||
65 | * Get the instance as an array. |
||
66 | * |
||
67 | * @return array |
||
68 | */ |
||
69 | 6 | public function toArray() |
|
76 | } |
||
77 |