| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | 32 | public function connect(array $params, $username = null, $password = null, array $driverOptions = []) |
|
| 18 | { |
||
| 19 | try { |
||
| 20 | 32 | return new OCI8Connection( |
|
| 21 | 32 | (string) $username, |
|
| 22 | 32 | (string) $password, |
|
| 23 | 32 | $this->_constructDsn($params), |
|
| 24 | 32 | $params['charset'] ?? '', |
|
| 25 | 32 | $params['sessionMode'] ?? OCI_NO_AUTO_COMMIT, |
|
| 26 | 32 | $params['persistent'] ?? false |
|
| 27 | ); |
||
| 28 | 3 | } catch (OCI8Exception $e) { |
|
| 29 | 3 | throw DBALException::driverException($this, $e); |
|
| 30 | } |
||
| 55 |