1 | <?php |
||
23 | class DirectionsLeg |
||
24 | { |
||
25 | /** |
||
26 | * @var Distance|null |
||
27 | */ |
||
28 | private $distance; |
||
29 | |||
30 | /** |
||
31 | * @var Duration|null |
||
32 | */ |
||
33 | private $duration; |
||
34 | |||
35 | /** |
||
36 | * @var Duration|null |
||
37 | */ |
||
38 | private $durationInTraffic; |
||
39 | |||
40 | /** |
||
41 | * @var string|null |
||
42 | */ |
||
43 | private $endAddress; |
||
44 | |||
45 | /** |
||
46 | * @var Coordinate|null |
||
47 | */ |
||
48 | private $endLocation; |
||
49 | |||
50 | /** |
||
51 | * @var string|null |
||
52 | */ |
||
53 | private $startAddress; |
||
54 | |||
55 | /** |
||
56 | * @var Coordinate|null |
||
57 | */ |
||
58 | private $startLocation; |
||
59 | |||
60 | /** |
||
61 | * @var DirectionsStep[] |
||
62 | */ |
||
63 | private $steps = []; |
||
64 | |||
65 | /** |
||
66 | * @var mixed[] |
||
67 | */ |
||
68 | private $viaWaypoints = []; |
||
69 | |||
70 | /** |
||
71 | * @return bool |
||
72 | */ |
||
73 | public function hasDistance() |
||
77 | |||
78 | /** |
||
79 | * @return Distance|null |
||
80 | */ |
||
81 | public function getDistance() |
||
85 | |||
86 | /** |
||
87 | * @param Distance|null $distance |
||
88 | */ |
||
89 | public function setDistance(Distance $distance = null) |
||
93 | |||
94 | /** |
||
95 | * @return bool |
||
96 | */ |
||
97 | public function hasDuration() |
||
101 | |||
102 | /** |
||
103 | * @return Duration|null |
||
104 | */ |
||
105 | public function getDuration() |
||
109 | |||
110 | /** |
||
111 | * @param Duration|null $duration |
||
112 | */ |
||
113 | public function setDuration(Duration $duration = null) |
||
117 | |||
118 | /** |
||
119 | * @return bool |
||
120 | */ |
||
121 | public function hasDurationInTraffic() |
||
125 | |||
126 | /** |
||
127 | * @return Duration|null |
||
128 | */ |
||
129 | public function getDurationInTraffic() |
||
133 | |||
134 | /** |
||
135 | * @param Duration|null $durationInTraffic |
||
136 | */ |
||
137 | public function setDurationInTraffic(Duration $durationInTraffic = null) |
||
141 | |||
142 | /** |
||
143 | * @return bool |
||
144 | */ |
||
145 | public function hasEndAddress() |
||
149 | |||
150 | /** |
||
151 | * @return string|null |
||
152 | */ |
||
153 | public function getEndAddress() |
||
157 | |||
158 | /** |
||
159 | * @param string|null $endAddress |
||
160 | */ |
||
161 | public function setEndAddress($endAddress = null) |
||
165 | |||
166 | /** |
||
167 | * @return bool |
||
168 | */ |
||
169 | public function hasEndLocation() |
||
173 | |||
174 | /** |
||
175 | * @return Coordinate|null |
||
176 | */ |
||
177 | public function getEndLocation() |
||
181 | |||
182 | /** |
||
183 | * @param Coordinate|null $endLocation |
||
184 | */ |
||
185 | public function setEndLocation(Coordinate $endLocation = null) |
||
189 | |||
190 | /** |
||
191 | * @return bool |
||
192 | */ |
||
193 | public function hasStartAddress() |
||
197 | |||
198 | /** |
||
199 | * @return string|null |
||
200 | */ |
||
201 | public function getStartAddress() |
||
205 | |||
206 | /** |
||
207 | * @param string|null $startAddress |
||
208 | */ |
||
209 | public function setStartAddress($startAddress = null) |
||
213 | |||
214 | /** |
||
215 | * @return bool |
||
216 | */ |
||
217 | public function hasStartLocation() |
||
221 | |||
222 | /** |
||
223 | * @return Coordinate|null |
||
224 | */ |
||
225 | public function getStartLocation() |
||
229 | |||
230 | /** |
||
231 | * @param Coordinate|null $startLocation |
||
232 | */ |
||
233 | public function setStartLocation(Coordinate $startLocation = null) |
||
237 | |||
238 | /** |
||
239 | * @return bool |
||
240 | */ |
||
241 | public function hasSteps() |
||
245 | |||
246 | /** |
||
247 | * @return DirectionsStep[] |
||
248 | */ |
||
249 | public function getSteps() |
||
253 | |||
254 | /** |
||
255 | * @param DirectionsStep[] $steps |
||
256 | */ |
||
257 | public function setSteps(array $steps) |
||
262 | |||
263 | /** |
||
264 | * @param DirectionsStep[] $steps |
||
265 | */ |
||
266 | public function addSteps(array $steps) |
||
272 | |||
273 | /** |
||
274 | * @param DirectionsStep $step |
||
275 | * |
||
276 | * @return bool |
||
277 | */ |
||
278 | public function hasStep(DirectionsStep $step) |
||
282 | |||
283 | /** |
||
284 | * @param DirectionsStep $step |
||
285 | */ |
||
286 | public function addStep(DirectionsStep $step) |
||
292 | |||
293 | /** |
||
294 | * @param DirectionsStep $step |
||
295 | */ |
||
296 | public function removeStep(DirectionsStep $step) |
||
300 | |||
301 | /** |
||
302 | * @return bool |
||
303 | */ |
||
304 | public function hasViaWaypoints() |
||
308 | |||
309 | /** |
||
310 | * @return mixed[] |
||
311 | */ |
||
312 | public function getViaWaypoints() |
||
316 | |||
317 | /** |
||
318 | * @param mixed[] $viaWaypoints |
||
319 | */ |
||
320 | public function setViaWaypoints(array $viaWaypoints) |
||
324 | } |
||
325 |