| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 1 | public function __construct( |
|
| 22 | string $sql, |
||
| 23 | array $params = [], |
||
| 24 | string $message = 'SQL Error', |
||
| 25 | int $code = 0, |
||
| 26 | Exception|null $previous = null |
||
| 27 | ) { |
||
| 28 | 1 | parent::__construct( |
|
| 29 | 1 | "{$message}\n" . QueryFormatter::formatQuery($sql, $params), |
|
| 30 | 1 | $code, |
|
| 31 | 1 | $previous |
|
| 32 | 1 | ); |
|
| 35 |