| Total Complexity | 5 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 93.33% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class ParseException extends \Exception |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var StringIterator |
||
| 11 | */ |
||
| 12 | private $stringIterator; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * ParseException constructor. |
||
| 16 | * |
||
| 17 | * @param string $message |
||
| 18 | * @param StringIterator|null $stringIterator |
||
| 19 | */ |
||
| 20 | 3 | public function __construct(string $message = '', StringIterator $stringIterator = null) |
|
| 28 | 3 | } |
|
| 29 | |||
| 30 | /** |
||
| 31 | * Get line number of current entry on the StringIterator. |
||
| 32 | * |
||
| 33 | * @return int |
||
| 34 | */ |
||
| 35 | 1 | private function getLineNumber(): int |
|
| 51 |