Leg::getStart()   A
last analyzed

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[]
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
    public function getStart(): array
30
    {
31
        return $this->start;
32
    }
33
34
    public function getEnd(): array
35
    {
36
        return $this->end;
37
    }
38
39
    /**
40
     * @return Step[]
41
     */
42
    public function getSteps(): array
43
    {
44
        return $this->steps;
45
    }
46
}
47