Completed
Push — master ( be00fa...152a7c )
by Beniamin
05:51 queued 02:08
created

NullConnection   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 34
c 0
b 0
f 0
wmc 4
lcom 0
cbo 0
ccs 0
cts 8
cp 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A fetchScalar() 0 4 1
A fetchRow() 0 4 1
A fetchAll() 0 4 1
A rowCount() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of Phuria SQL Builder package.
5
 *
6
 * Copyright (c) 2016 Beniamin Jonatan Šimko
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Phuria\SQLBuilder\Connection;
13
14
/**
15
 * @author Beniamin Jonatan Šimko <[email protected]>
16
 */
17
class NullConnection implements ConnectionInterface
18
{
19
    /**
20
     * @inheritdoc
21
     */
22
    public function fetchScalar($SQL, array $parameters = [])
23
    {
24
        return null;
25
    }
26
27
    /**
28
     * @inheritdoc
29
     */
30
    public function fetchRow($SQL, array $parameters = [])
31
    {
32
        return [];
33
    }
34
35
    /**
36
     * @inheritdoc
37
     */
38
    public function fetchAll($SQL, array $parameters = [])
39
    {
40
        return [];
41
    }
42
43
    /**
44
     * @inheritdoc
45
     */
46
    public function rowCount($SQL, array $parameters = [])
47
    {
48
        return 0;
49
    }
50
}