Total Complexity | 5 |
Total Lines | 60 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class Step |
||
9 | { |
||
10 | /** |
||
11 | * @var array |
||
12 | */ |
||
13 | private $position; |
||
14 | |||
15 | /** |
||
16 | * @var Distance |
||
17 | */ |
||
18 | private $distance; |
||
19 | |||
20 | /** |
||
21 | * @var Duration |
||
22 | */ |
||
23 | private $duration; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | private $instruction; |
||
29 | |||
30 | public function __construct(array $data) |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Get the value of position. |
||
40 | */ |
||
41 | public function getPosition(): array |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * Get the value of distance. |
||
48 | */ |
||
49 | public function getDistance(): Distance |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * Get the value of duration. |
||
56 | */ |
||
57 | public function getDuration(): Duration |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * Get the value of instruction. |
||
64 | */ |
||
65 | public function getInstruction(): string |
||
70 |