Total Complexity | 5 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | final class LiteralArrayValueList implements ValueListInterface |
||
10 | { |
||
11 | |||
12 | private $indexMap; |
||
13 | |||
14 | private $values; |
||
15 | |||
16 | 5 | public function __construct(IndexMapInterface $indexMap, ArrayValueInterface ...$values) |
|
17 | { |
||
18 | 5 | $this->indexMap = $indexMap; |
|
19 | 5 | $this->values = $values; |
|
20 | 5 | } |
|
21 | |||
22 | 1 | public function getIndexMap(): IndexMapInterface |
|
23 | { |
||
24 | 1 | return $this->indexMap; |
|
25 | } |
||
26 | |||
27 | 2 | public function getValues(): array |
|
30 | } |
||
31 | |||
32 | 2 | public function getValue(int $index): ValueInterface |
|
39 | } |
||
40 | } |
||
41 |