Completed
Push — master ( 8fa5d0...315cf2 )
by Beniamin
06:27
created

NullStatement::bindParameters()   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 1
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
}