OCI8Connection   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
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 10
ccs 0
cts 4
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A newCursor() 0 3 1
A prepare() 0 3 1
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