1 | <?php namespace Arcanedev\GeoLocation\Google\Directions\Entities; |
||
14 | class Leg |
||
15 | { |
||
16 | /* ----------------------------------------------------------------- |
||
17 | | Properties |
||
18 | | ----------------------------------------------------------------- |
||
19 | */ |
||
20 | |||
21 | /** |
||
22 | * The start address. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $startAddress; |
||
27 | |||
28 | /** |
||
29 | * The start location. |
||
30 | * |
||
31 | * @var \Arcanedev\GeoLocation\Contracts\Entities\Position |
||
32 | */ |
||
33 | protected $startLocation; |
||
34 | |||
35 | /** |
||
36 | * The end address |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $endAddress; |
||
41 | |||
42 | /** |
||
43 | * The end location. |
||
44 | * |
||
45 | * @var \Arcanedev\GeoLocation\Contracts\Entities\Position |
||
46 | */ |
||
47 | protected $endLocation; |
||
48 | |||
49 | /** |
||
50 | * The distance (text + value). |
||
51 | * |
||
52 | * @var array |
||
53 | */ |
||
54 | protected $distance; |
||
55 | |||
56 | /** |
||
57 | * The duration (text + value). |
||
58 | * |
||
59 | * @var array |
||
60 | */ |
||
61 | protected $duration; |
||
62 | |||
63 | /** |
||
64 | * The steps collection. |
||
65 | * |
||
66 | * @var \Arcanedev\GeoLocation\Google\Directions\Entities\StepCollection |
||
67 | */ |
||
68 | protected $steps; |
||
69 | |||
70 | /** |
||
71 | * The traffic speed entry. |
||
72 | * |
||
73 | * @var array |
||
74 | */ |
||
75 | protected $trafficSpeedEntry; |
||
76 | |||
77 | /** |
||
78 | * The via waypoint. |
||
79 | * |
||
80 | * @var array |
||
81 | */ |
||
82 | protected $viaWaypoint; |
||
83 | |||
84 | /* ----------------------------------------------------------------- |
||
85 | | Main Methods |
||
86 | | ----------------------------------------------------------------- |
||
87 | */ |
||
88 | |||
89 | /** |
||
90 | * Leg constructor. |
||
91 | * |
||
92 | * @param array $data |
||
93 | */ |
||
94 | public function __construct(array $data) |
||
110 | |||
111 | /* ----------------------------------------------------------------- |
||
112 | | Getters & Setters |
||
113 | | ----------------------------------------------------------------- |
||
114 | */ |
||
115 | /** |
||
116 | * @return string |
||
117 | */ |
||
118 | public function startAddress() |
||
122 | |||
123 | /** |
||
124 | * @return \Arcanedev\GeoLocation\Contracts\Entities\Position |
||
125 | */ |
||
126 | public function startLocation() |
||
130 | |||
131 | /** |
||
132 | * @return string |
||
133 | */ |
||
134 | public function endAddress() |
||
138 | |||
139 | /** |
||
140 | * @return \Arcanedev\GeoLocation\Contracts\Entities\Position |
||
141 | */ |
||
142 | public function endLocation() |
||
146 | |||
147 | /** |
||
148 | * @return array |
||
149 | */ |
||
150 | public function distance() |
||
154 | |||
155 | /** |
||
156 | * @return array |
||
157 | */ |
||
158 | public function duration() |
||
162 | |||
163 | /** |
||
164 | * Get the step collection. |
||
165 | * |
||
166 | * @return \Arcanedev\GeoLocation\Google\Directions\Entities\StepCollection |
||
167 | */ |
||
168 | public function steps() |
||
172 | |||
173 | /** |
||
174 | * Get the traffic speed entry. |
||
175 | * |
||
176 | * @return array |
||
177 | */ |
||
178 | public function trafficSpeedEntry() |
||
182 | |||
183 | /** |
||
184 | * Get the via waypoint. |
||
185 | * |
||
186 | * @return array |
||
187 | */ |
||
188 | public function viaWaypoint() |
||
192 | } |
||
193 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..