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 | 2 | public function __construct(string $message, int $offset) |
|
17 | { |
||
18 | 2 | $this->offset = $offset; |
|
19 | 2 | parent::__construct($message . ' at offset ' . $offset); |
|
20 | } |
||
21 | |||
22 | 1 | public function getOffset(): int |
|
25 | } |
||
26 | } |