| 1 | <?php |
||
| 25 | class ParserException extends RuntimeException |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * @var string[] |
||
| 29 | */ |
||
| 30 | private $errors; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Set list of errors at construct |
||
| 34 | * |
||
| 35 | * @param string[] $errors Messages describing found parsing errors |
||
| 36 | */ |
||
| 37 | public function __construct(array $errors) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return string[] |
||
| 45 | */ |
||
| 46 | public function getErrors(): array |
||
| 50 | } |
||
| 51 |