| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | 3104 | public function __construct(string $message, DriverExceptionInterface $driverException) |
|
| 28 | { |
||
| 29 | 3104 | $exception = null; |
|
| 30 | 3104 | $code = 0; |
|
| 31 | |||
| 32 | 3104 | if ($driverException instanceof Exception) { |
|
| 33 | 3104 | $exception = $driverException; |
|
| 34 | 3104 | $code = $driverException->getCode(); |
|
| 35 | } |
||
| 36 | |||
| 37 | 3104 | parent::__construct($message, $code, $exception); |
|
| 38 | |||
| 39 | 3104 | $this->driverException = $driverException; |
|
| 40 | 3104 | } |
|
| 52 |