1 | <?php |
||
17 | class DirectionsResponse |
||
18 | { |
||
19 | /** |
||
20 | * @var string|null |
||
21 | */ |
||
22 | private $status; |
||
23 | |||
24 | /** |
||
25 | * @var DirectionsRoute[] |
||
26 | */ |
||
27 | private $routes = []; |
||
28 | |||
29 | /** |
||
30 | * @var DirectionsGeocoded[] |
||
31 | */ |
||
32 | private $geocodedWaypoints = []; |
||
33 | |||
34 | /** |
||
35 | * @return bool |
||
36 | */ |
||
37 | public function hasStatus() |
||
41 | |||
42 | /** |
||
43 | * @return string|null |
||
44 | */ |
||
45 | public function getStatus() |
||
49 | |||
50 | /** |
||
51 | * @param string|null $status |
||
52 | */ |
||
53 | public function setStatus($status = null) |
||
57 | |||
58 | /** |
||
59 | * @return bool |
||
60 | */ |
||
61 | public function hasRoutes() |
||
65 | |||
66 | /** |
||
67 | * @return DirectionsRoute[] |
||
68 | */ |
||
69 | public function getRoutes() |
||
73 | |||
74 | /** |
||
75 | * @param DirectionsRoute[] $routes |
||
76 | */ |
||
77 | public function setRoutes(array $routes) |
||
82 | |||
83 | /** |
||
84 | * @param DirectionsRoute[] $routes |
||
85 | */ |
||
86 | public function addRoutes(array $routes) |
||
92 | |||
93 | /** |
||
94 | * @param DirectionsRoute $route |
||
95 | * |
||
96 | * @return bool |
||
97 | */ |
||
98 | public function hasRoute(DirectionsRoute $route) |
||
102 | |||
103 | /** |
||
104 | * @param DirectionsRoute $route |
||
105 | */ |
||
106 | public function addRoute(DirectionsRoute $route) |
||
112 | |||
113 | /** |
||
114 | * @param DirectionsRoute $route |
||
115 | */ |
||
116 | public function removeRoute(DirectionsRoute $route) |
||
121 | |||
122 | /** |
||
123 | * @return bool |
||
124 | */ |
||
125 | public function hasGeocodedWaypoints() |
||
129 | |||
130 | /** |
||
131 | * @return DirectionsGeocoded[] |
||
132 | */ |
||
133 | public function getGeocodedWaypoints() |
||
137 | |||
138 | /** |
||
139 | * @param DirectionsGeocoded[] $geocodedWaypoints |
||
140 | */ |
||
141 | public function setGeocodedWaypoints(array $geocodedWaypoints) |
||
146 | |||
147 | /** |
||
148 | * @param DirectionsGeocoded[] $geocodedWaypoints |
||
149 | */ |
||
150 | public function addGeocodedWaypoints(array $geocodedWaypoints) |
||
156 | |||
157 | /** |
||
158 | * @param DirectionsGeocoded $geocodedWaypoint |
||
159 | * |
||
160 | * @return bool |
||
161 | */ |
||
162 | public function hasGeocodedWaypoint(DirectionsGeocoded $geocodedWaypoint) |
||
166 | |||
167 | /** |
||
168 | * @param DirectionsGeocoded $geocodedWaypoint |
||
169 | */ |
||
170 | public function addGeocodedWaypoint(DirectionsGeocoded $geocodedWaypoint) |
||
176 | |||
177 | /** |
||
178 | * @param DirectionsGeocoded $geocodedWaypoint |
||
179 | */ |
||
180 | public function removeGeocodedWaypoint(DirectionsGeocoded $geocodedWaypoint) |
||
185 | } |
||
186 |