| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 10 |
| Lines | 12 |
| Ratio | 100 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | 2 | protected function connect( |
|
| 26 | $username, |
||
| 27 | $password, |
||
| 28 | $connectionString = null, |
||
| 29 | $characterSet = null, |
||
| 30 | $sessionMode = null |
||
| 31 | ) { |
||
| 32 | 2 | set_error_handler($this->getErrorHandler()); |
|
| 33 | 2 | $connection = oci_pconnect($username, $password, $connectionString, $characterSet, $sessionMode); |
|
| 34 | 1 | restore_error_handler(); |
|
| 35 | 1 | return $connection; |
|
| 36 | } |
||
| 37 | } |
||
| 38 |