| 1 | <?php |
||
| 17 | final class SyntaxError extends \RuntimeException |
||
| 18 | { |
||
| 19 | /** @var int */ |
||
| 20 | private $lineNumber; |
||
| 21 | |||
| 22 | /** @var int */ |
||
| 23 | private $column; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * SyntaxError constructor. |
||
| 27 | * |
||
| 28 | * @param string $message |
||
| 29 | * @param int $linenumber |
||
| 30 | * @param int $columnNumber |
||
| 31 | * @param \Throwable|null $previous |
||
| 32 | */ |
||
| 33 | 96 | public function __construct($message, $linenumber, $columnNumber, $previous = null) |
|
| 42 | |||
| 43 | /** |
||
| 44 | * @return int |
||
| 45 | */ |
||
| 46 | 21 | public function getLineNumber() |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @return int |
||
| 53 | */ |
||
| 54 | 21 | public function getColumn() |
|
| 58 | } |
||
| 59 |