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

NullStatement   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 42
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A execute() 0 4 1
A rowCount() 0 4 1
A bindParameter() 0 4 1
A bindParameters() 0 4 1
A bindValue() 0 4 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
}