Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
17 | class KeyValueNode extends ValueNode implements KeyValueNodeInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var mixed |
||
21 | */ |
||
22 | private $key; |
||
23 | |||
24 | /** |
||
25 | * KeyValueNode constructor. |
||
26 | * |
||
27 | * @param mixed|null $key |
||
28 | * @param mixed|null $value |
||
29 | */ |
||
30 | 5 | public function __construct( |
|
31 | $key, |
||
32 | $value, |
||
33 | int $capacity = 0, |
||
34 | ?TraverserInterface $traverser = null, |
||
35 | ?NodeInterface $parent = null |
||
36 | ) { |
||
37 | 5 | parent::__construct($value, $capacity, $traverser, $parent); |
|
38 | |||
39 | 5 | $this->key = $key; |
|
40 | 5 | } |
|
41 | |||
42 | 2 | public function getKey() |
|
45 | } |
||
46 | } |
||
47 |