OCI8Cursor   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 7
ccs 0
cts 4
cp 0
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 2
1
<?php
2
3
/**
4
 * For the full copyright and license information, please view
5
 * the LICENSE file that was distributed with this source code.
6
 *
7
 * @see https://github.com/ecphp
8
 */
9
10
declare(strict_types=1);
11
12
namespace EcPhp\DoctrineOci8\Doctrine\DBAL\Driver\OCI8;
13
14
use function oci_new_cursor;
15
16
final class OCI8Cursor extends OCI8Statement
17
{
18
    public function __construct($dbh, OCI8Connection $conn, $sth = null)
19
    {
20
        $this->_dbh = $dbh;
21
        $this->_conn = $conn;
22
        $this->_sth = $sth ?: oci_new_cursor($dbh);
23
    }
24
}
25