OCI8Cursor::__construct()   A
last analyzed

Complexity

Conditions 2
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 3
c 1
b 0
f 0
nc 1
nop 3
dl 0
loc 5
ccs 0
cts 4
cp 0
crap 6
rs 10
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