Completed
Push — master ( c891e1...8fa5d0 )
by Beniamin
06:55
created

NullConnection::prepareStatement()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 2
1
<?php
2
3
/**
4
 * This file is part of UnderQuery 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\UnderQuery\Connection;
13
14
/**
15
 * @author Beniamin Jonatan Šimko <[email protected]>
16
 * @codeCoverageIgnore
17
 */
18
class NullConnection implements ConnectionInterface
19
{
20
    /**
21
     * @inheritdoc
22
     */
23
    public function prepareStatement($SQL, $parameters = [])
24
    {
25
        return null;
26
    }
27
28
    /**
29
     * @inheritdoc
30
     */
31
    public function fetchScalar($SQL, array $parameters = [])
0 ignored issues
show
Unused Code introduced by
The parameter $SQL is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $parameters is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
32
    {
33
        return null;
34
    }
35
36
    /**
37
     * @inheritdoc
38
     */
39
    public function fetchRow($SQL, array $parameters = [])
0 ignored issues
show
Unused Code introduced by
The parameter $SQL is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $parameters is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
40
    {
41
        return null;
42
    }
43
44
    /**
45
     * @inheritdoc
46
     */
47
    public function fetchAll($SQL, array $parameters = [])
0 ignored issues
show
Unused Code introduced by
The parameter $SQL is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $parameters is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
48
    {
49
        return [];
50
    }
51
52
    /**
53
     * @inheritdoc
54
     */
55
    public function rowCount($SQL, array $parameters = [])
0 ignored issues
show
Unused Code introduced by
The parameter $SQL is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $parameters is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
56
    {
57
        return 0;
58
    }
59
60
    /**
61
     * @inheritdoc
62
     */
63
    public function execute($SQL, array $parameters = [])
0 ignored issues
show
Unused Code introduced by
The parameter $SQL is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $parameters is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
64
    {
65
        return 0;
66
    }
67
}