Completed
Push — master ( c94c1b...986a44 )
by Beniamin
02:22
created

NullStatement::closeCursor()   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
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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\Statement;
13
14
use Phuria\UnderQuery\Parameter\QueryParameterInterface;
15
16
/**
17
 * @author Beniamin Jonatan Šimko <[email protected]>
18
 * @codeCoverageIgnore
19
 */
20
class NullStatement implements StatementInterface
21
{
22
    /**
23
     * @inheritdoc
24
     */
25
    public function execute()
26
    {
27
        return $this;
28
    }
29
30
    /**
31
     * @inheritdoc
32
     */
33
    public function rowCount()
34
    {
35
        return null;
36
    }
37
38
    /**
39
     * @inheritdoc
40
     */
41
    public function bindParameter(QueryParameterInterface $parameter)
42
    {
43
        return $this;
44
    }
45
46
    /**
47
     * @inheritdoc
48
     */
49
    public function bindParameters($parameters)
50
    {
51
        return $this;
52
    }
53
54
    /**
55
     * @inheritdoc
56
     */
57
    public function bindValue($name, $value)
58
    {
59
        return $this;
60
    }
61
62
    /**
63
     * @inheritdoc
64
     */
65
    public function closeCursor()
66
    {
67
        return $this;
68
    }
69
70
    /**
71
     * @inheritdoc
72
     */
73
    public function fetch($fetchStyle = null, $cursorOrientation = \PDO::FETCH_ORI_NEXT, $cursorOffset = 0)
74
    {
75
        return null;
76
    }
77
78
    /**
79
     * @inheritdoc
80
     */
81
    public function fetchColumn($column = 0)
82
    {
83
        return null;
84
    }
85
86
    /**
87
     * @inheritdoc
88
     */
89
    public function fetchAll($fetchStyle = null)
90
    {
91
        return [];
92
    }
93
94
    /**
95
     * @inheritdoc
96
     */
97
    public function fetchObject($className = 'stdClass', $constructorArguments = [])
98
    {
99
        return null;
100
    }
101
102
    /**
103
     * @inheritdoc
104
     */
105
    public function fetchCallback(callable $callback)
106
    {
107
        return null;
108
    }
109
}