| Total Complexity | 3 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | final class OperationNotLoadedException extends RuntimeException implements ExceptionInterface |
||
| 11 | { |
||
| 12 | |||
| 13 | private $index; |
||
| 14 | |||
| 15 | private $patch; |
||
| 16 | |||
| 17 | public function __construct(int $index, NodeValueInterface $patch, Throwable $previous = null) |
||
| 18 | { |
||
| 19 | $this->index = $index; |
||
| 20 | $this->patch = $patch; |
||
| 21 | parent::__construct("Failed to load operation #{$this->index} from patch", 0, $previous); |
||
| 22 | } |
||
| 23 | |||
| 24 | public function getIndex(): int |
||
| 25 | { |
||
| 26 | return $this->index; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getPatch(): NodeValueInterface |
||
| 32 | } |
||
| 33 | } |
||
| 34 |