Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class Path |
||
10 | { |
||
11 | /** |
||
12 | * @var Path|null |
||
13 | */ |
||
14 | protected $previous; |
||
15 | |||
16 | /** |
||
17 | * @var string|mixed |
||
18 | */ |
||
19 | protected $key; |
||
20 | |||
21 | /** |
||
22 | * Path constructor. |
||
23 | * @param $previous |
||
24 | * @param $key |
||
25 | */ |
||
26 | public function __construct($previous, $key) |
||
27 | { |
||
28 | $this->previous = $previous; |
||
29 | $this->key = $key; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @return Path|null |
||
34 | */ |
||
35 | public function getPrevious() |
||
36 | { |
||
37 | return $this->previous; |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @return mixed|string |
||
42 | */ |
||
43 | public function getKey() |
||
46 | } |
||
47 | } |