| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class InvalidRangeException extends LogicException implements ExceptionInterface |
||
| 11 | { |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var int |
||
| 15 | */ |
||
| 16 | private $start; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var int |
||
| 20 | */ |
||
| 21 | private $finish; |
||
| 22 | |||
| 23 | 6 | public function __construct(int $start, int $finish, Throwable $previous = null) |
|
| 24 | { |
||
| 25 | 6 | $this->start = $start; |
|
| 26 | 6 | $this->finish = $finish; |
|
| 27 | 6 | parent::__construct("Invalid range: [{$this->start}, {$this->finish}]", 0, $previous); |
|
| 28 | 6 | } |
|
| 29 | |||
| 30 | 1 | public function getStart(): int |
|
| 33 | } |
||
| 34 | |||
| 35 | 1 | public function getFinish(): int |
|
| 38 | } |
||
| 39 | } |
||
| 40 |