Passed
Push — master ( d31a50...87284d )
by Damien
02:11
created

Leg::getEnd()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace DH\NavigationBundle\Model\Routing;
4
5
class Leg
6
{
7
    /**
8
     * @var array
9
     */
10
    private $start;
11
12
    /**
13
     * @var array
14
     */
15
    private $end;
16
17
    /**
18
     * @var Step[]|array
19
     */
20
    private $steps;
21
22
    public function __construct(array $data)
23
    {
24
        $this->start = $data['start'] ?? [];
25
        $this->end = $data['end'] ?? [];
26
        $this->steps = $data['steps'] ?? [];
27
    }
28
29
    /**
30
     * @return array
31
     */
32
    public function getStart(): array
33
    {
34
        return $this->start;
35
    }
36
37
    /**
38
     * @return array
39
     */
40
    public function getEnd(): array
41
    {
42
        return $this->end;
43
    }
44
45
    /**
46
     * @return Step[]|array
47
     */
48
    public function getSteps(): array
49
    {
50
        return $this->steps;
51
    }
52
}