OCI8Connection::prepare()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
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 Doctrine\DBAL\Driver\OCI8\OCI8Connection as BaseConnection;
15
16
final class OCI8Connection extends BaseConnection
0 ignored issues
show
Deprecated Code introduced by
The class Doctrine\DBAL\Driver\OCI8\OCI8Connection has been deprecated: Use {@link Connection} instead ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

16
final class OCI8Connection extends /** @scrutinizer ignore-deprecated */ BaseConnection
Loading history...
17
{
18
    public function newCursor($sth = null): OCI8Cursor
19
    {
20
        return new OCI8Cursor($this->dbh, $this, $sth);
21
    }
22
23
    public function prepare($prepareString): OCI8Statement
24
    {
25
        return new OCI8Statement($this->dbh, $prepareString, $this);
26
    }
27
}
28