Total Complexity | 3 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 100% |
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 | 6 | public function __construct(int $index, NodeValueInterface $patch, Throwable $previous = null) |
|
18 | { |
||
19 | 6 | $this->index = $index; |
|
20 | 6 | $this->patch = $patch; |
|
21 | 6 | parent::__construct("Failed to load operation #{$this->index} from patch", 0, $previous); |
|
22 | 6 | } |
|
23 | |||
24 | 1 | public function getIndex(): int |
|
25 | { |
||
26 | 1 | return $this->index; |
|
27 | } |
||
28 | |||
29 | 1 | public function getPatch(): NodeValueInterface |
|
32 | } |
||
33 | } |
||
34 |