| Total Complexity | 2 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 12 | class DecodingException extends RuntimeException |
||
| 13 | { |
||
| 14 | protected int $offset; |
||
| 15 | |||
| 16 | 43 | public function __construct(int $offset, string $message) |
|
| 17 | { |
||
| 18 | 43 | $this->offset = $offset; |
|
| 19 | 43 | parent::__construct($message . ' at offset ' . $offset); |
|
| 20 | } |
||
| 21 | |||
| 22 | 43 | public function getOffset(): int |
|
| 25 | } |
||
| 26 | } |