1 | <?php namespace Arcanedev\GeoLocation\Google\Directions\Entities; |
||
14 | class Step |
||
15 | { |
||
16 | /* ----------------------------------------------------------------- |
||
17 | | Properties |
||
18 | | ----------------------------------------------------------------- |
||
19 | */ |
||
20 | |||
21 | /** |
||
22 | * The start location. |
||
23 | * |
||
24 | * @var \Arcanedev\GeoLocation\Contracts\Entities\Position |
||
25 | */ |
||
26 | protected $start; |
||
27 | |||
28 | /** |
||
29 | * The end location. |
||
30 | * |
||
31 | * @var \Arcanedev\GeoLocation\Contracts\Entities\Position |
||
32 | */ |
||
33 | protected $end; |
||
34 | |||
35 | /** |
||
36 | * The distance. |
||
37 | * |
||
38 | * @var \Arcanedev\GeoLocation\Entities\Distance |
||
39 | */ |
||
40 | protected $distance; |
||
41 | |||
42 | /** |
||
43 | * The duration. |
||
44 | * |
||
45 | * @var \Arcanedev\GeoLocation\Entities\Duration |
||
46 | */ |
||
47 | protected $duration; |
||
48 | |||
49 | /** |
||
50 | * The travel mode. |
||
51 | * |
||
52 | * @var string |
||
53 | */ |
||
54 | protected $mode; |
||
55 | |||
56 | /** |
||
57 | * The instructions (HTML format). |
||
58 | * |
||
59 | * @var string |
||
60 | */ |
||
61 | protected $instructions; |
||
62 | |||
63 | /** |
||
64 | * The polyline. |
||
65 | * |
||
66 | * @var array |
||
67 | */ |
||
68 | protected $polyline; |
||
69 | |||
70 | /* ----------------------------------------------------------------- |
||
71 | | Constructor |
||
72 | | ----------------------------------------------------------------- |
||
73 | */ |
||
74 | |||
75 | /** |
||
76 | * Step constructor. |
||
77 | * |
||
78 | * @param array $data |
||
79 | */ |
||
80 | 3 | public function __construct(array $data) |
|
90 | |||
91 | /* ----------------------------------------------------------------- |
||
92 | | Getters & Setters |
||
93 | | ----------------------------------------------------------------- |
||
94 | */ |
||
95 | |||
96 | /** |
||
97 | * Get the start location. |
||
98 | * |
||
99 | * @return \Arcanedev\GeoLocation\Contracts\Entities\Position |
||
100 | */ |
||
101 | 3 | public function start() |
|
105 | |||
106 | /** |
||
107 | * Get the end location. |
||
108 | * |
||
109 | * @return \Arcanedev\GeoLocation\Contracts\Entities\Position |
||
110 | */ |
||
111 | 3 | public function end() |
|
115 | |||
116 | /** |
||
117 | * Get the distance. |
||
118 | * |
||
119 | * @return \Arcanedev\GeoLocation\Entities\Distance |
||
120 | */ |
||
121 | 3 | public function distance() |
|
125 | |||
126 | /** |
||
127 | * Get the duration. |
||
128 | * |
||
129 | * @return \Arcanedev\GeoLocation\Entities\Duration |
||
130 | */ |
||
131 | 3 | public function duration() |
|
135 | |||
136 | /** |
||
137 | * Get the traveling mode. |
||
138 | * |
||
139 | * @return string |
||
140 | */ |
||
141 | 3 | public function mode() |
|
145 | |||
146 | /** |
||
147 | * Get the instructions (HTML format) |
||
148 | * @return string |
||
149 | */ |
||
150 | 3 | public function instructions() |
|
154 | |||
155 | /** |
||
156 | * Get the polyline. |
||
157 | * |
||
158 | * @return array |
||
159 | */ |
||
160 | 3 | public function polyline() |
|
164 | } |
||
165 |
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..