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