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