| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function __construct( |
||
| 33 | string $message, |
||
| 34 | ?string $file = null, |
||
| 35 | array $errors = [], |
||
| 36 | int $code = 0, |
||
| 37 | ?Throwable $previous = null, |
||
| 38 | ) { |
||
| 39 | if (null !== $file) { |
||
| 40 | Assert::file($file); |
||
| 41 | } |
||
| 42 | Assert::allString($errors); |
||
| 43 | |||
| 44 | $this->validatedFile = $file; |
||
|
|
|||
| 45 | $this->errors = $errors; |
||
| 46 | |||
| 47 | parent::__construct($message, $code, $previous); |
||
| 48 | } |
||
| 63 |