Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | final class ResultNotFoundException extends OutOfRangeException implements ExceptionInterface |
||
12 | { |
||
13 | |||
14 | private $index; |
||
15 | |||
16 | private $values; |
||
17 | |||
18 | 6 | public function __construct(int $index, ValueListInterface $valueList, Throwable $previous = null) |
|
23 | 6 | } |
|
24 | |||
25 | 6 | private function buildMessage(): string |
|
26 | { |
||
27 | 6 | return "Result not found in list at position {$this->index}"; |
|
28 | } |
||
29 | |||
30 | 1 | public function getIndex(): int |
|
31 | { |
||
32 | 1 | return $this->index; |
|
33 | } |
||
34 | |||
35 | 1 | public function getValues(): ValueListInterface |
|
38 | } |
||
39 | } |
||
40 |