| Total Complexity | 5 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class ParseException extends \Exception |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var StringIterator |
||
| 18 | */ |
||
| 19 | private $stringIterator; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * ParseException constructor. |
||
| 23 | * |
||
| 24 | * @param string $message |
||
| 25 | * @param StringIterator|null $stringIterator |
||
| 26 | */ |
||
| 27 | 5 | public function __construct(string $message = '', StringIterator $stringIterator = null) |
|
| 35 | 5 | } |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Get line number of current entry on the StringIterator. |
||
| 39 | * |
||
| 40 | * @return int |
||
| 41 | */ |
||
| 42 | 1 | private function getLineNumber(): int |
|
| 58 |