| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | public function __construct(array $errorInfo, $message = "", $code = 0, Throwable $previous = null) |
||
| 23 | { |
||
| 24 | if (array_diff(array_keys($errorInfo), [0, 1, 2])) { |
||
| 25 | throw new \RuntimeException(sprintf('Invalid errorInfo received for constructing %s.', __CLASS__)); |
||
| 26 | } |
||
| 27 | |||
| 28 | $this->errorInfo = $errorInfo; |
||
| 29 | |||
| 30 | parent::__construct($message, $code, $previous); |
||
| 31 | } |
||
| 41 |