| Total Complexity | 3 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 50% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class CompileException extends EngineException |
||
| 8 | { |
||
| 9 | private array $userTrace = []; |
||
| 10 | |||
| 11 | 2 | public function __construct(\Throwable $previous = null) |
|
| 12 | { |
||
| 13 | 2 | parent::__construct((string) $previous?->getMessage(), (int) ($previous?->getCode() ?? 0), $previous); |
|
| 14 | |||
| 15 | 2 | $this->file = (string) $previous?->getFile(); |
|
| 16 | 2 | $this->line = (int) $previous?->getLine(); |
|
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Set user trace pointing to the location of error in view templates. |
||
| 21 | */ |
||
| 22 | public function setUserTrace(array $trace): void |
||
| 25 | } |
||
| 26 | |||
| 27 | public function getUserTrace(): array |
||
| 30 | } |
||
| 31 | } |
||
| 32 |