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