| Total Complexity | 5 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class ValueInListWithAnotherOuterIndexException extends LogicException implements ExceptionInterface |
||
| 12 | { |
||
| 13 | |||
| 14 | private $value; |
||
| 15 | |||
| 16 | private $expectedIndex; |
||
| 17 | |||
| 18 | private $actualIndex; |
||
| 19 | |||
| 20 | public function __construct( |
||
| 30 | } |
||
| 31 | |||
| 32 | private function buildMessage(): string |
||
| 33 | { |
||
| 34 | return "Value is already in list with outer index {$this->expectedIndex}, not {$this->actualIndex}"; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getValue(): NodeValueInterface |
||
| 38 | { |
||
| 39 | return $this->value; |
||
| 40 | } |
||
| 41 | |||
| 42 | public function getExpectedIndex(): int |
||
| 43 | { |
||
| 44 | return $this->expectedIndex; |
||
| 45 | } |
||
| 46 | |||
| 47 | public function getActualIndex(): int |
||
| 50 | } |
||
| 51 | } |
||
| 52 |