Passed
Push — main ( 83bea6...22b11c )
by Thierry
01:32
created

DriverTrait::connection()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Lagdo\DbAdmin\Driver\Fake;
4
5
trait DriverTrait
6
{
7
    /**
8
     * @var Connection
9
     */
10
    protected $testConnection;
11
12
    /**
13
     * @return Connection
14
     */
15
    public function connection(): Connection
16
    {
17
        return $this->testConnection;
18
    }
19
20
    /**
21
     * @param string $version
22
     *
23
     * @return void
24
     */
25
    public function setVersion(string $version)
26
    {
27
        $this->testConnection->setServerInfo($version);
28
    }
29
30
    /**
31
     * @inheritDoc
32
     */
33
    public function rows(string $query)
34
    {
35
        return $this->testConnection->rows($query);
36
    }
37
}
38