| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function connect( |
||
| 21 | array $params, |
||
| 22 | string $username = '', |
||
| 23 | string $password = '', |
||
| 24 | array $driverOptions = [] |
||
| 25 | ) : Connection { |
||
| 26 | try { |
||
| 27 | return new OCI8Connection( |
||
| 28 | $username, |
||
| 29 | $password, |
||
| 30 | $this->constructDsn($params), |
||
| 31 | $params['charset'] ?? '', |
||
| 32 | $params['sessionMode'] ?? OCI_DEFAULT, |
||
| 33 | $params['persistent'] ?? false |
||
| 34 | ); |
||
| 35 | } catch (OCI8Exception $e) { |
||
| 36 | throw DBALException::driverException($this, $e); |
||
| 37 | } |
||
| 52 |