| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function connect(array $params, $username = null, $password = null, array $driverOptions = []) |
||
| 24 | { |
||
| 25 | try { |
||
| 26 | return new PDOConnection( |
||
| 27 | $this->constructPdoDsn($params), |
||
| 28 | $username, |
||
| 29 | $password, |
||
| 30 | $driverOptions |
||
| 31 | ); |
||
| 32 | } catch (PDOException $e) { |
||
| 33 | throw DBALException::driverException($this, $e); |
||
| 34 | } |
||
| 63 |