1 | <?php |
||
20 | class CompilerException extends ExternalFileException |
||
21 | { |
||
22 | /** |
||
23 | * @var bool |
||
24 | */ |
||
25 | private $defined = false; |
||
26 | |||
27 | /** |
||
28 | * @param string $message |
||
29 | * @param array $args |
||
30 | * @return CompilerException |
||
31 | */ |
||
32 | public function rename(string $message, ...$args): self |
||
38 | |||
39 | /** |
||
40 | * @param Definition $def |
||
41 | * @return CompilerException |
||
42 | */ |
||
43 | public function in(Definition $def): self |
||
49 | |||
50 | /** |
||
51 | * @param Readable $file |
||
52 | * @param int $offsetOrLine |
||
53 | * @param int|null $column |
||
54 | * @return ExternalExceptionInterface|self |
||
55 | */ |
||
56 | public function throwsIn(Readable $file, int $offsetOrLine = 0, int $column = null): ExternalExceptionInterface |
||
66 | |||
67 | /** |
||
68 | * @return bool |
||
69 | */ |
||
70 | public function isPositionDefined(): bool |
||
74 | } |
||
75 |