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