| Total Complexity | 4 |
| Total Lines | 10 |
| Duplicated Lines | 0 % |
| Coverage | 57.14% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class MysqliException extends AbstractDriverException |
||
| 15 | { |
||
| 16 | 862 | public static function fromConnectionError(mysqli $connection) : self |
|
| 17 | { |
||
| 18 | 862 | return new self($connection->error, $connection->sqlstate ?: null, $connection->errno); |
|
| 19 | } |
||
| 20 | |||
| 21 | 834 | public static function fromStatementError(mysqli_stmt $statement) : self |
|
| 24 | } |
||
| 25 | } |
||
| 26 |