Completed
Push — master ( fd0133...375486 )
by Beniamin
02:35
created

NullStatement::rowCount()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
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\Statement;
13
14
/**
15
 * @author Beniamin Jonatan Šimko <[email protected]>
16
 */
17
class NullStatement implements StatementInterface
18
{
19
    /**
20
     * @inheritdoc
21
     */
22
    public function bindValue($parameter, $value)
23
    {
24
        return $this;
25
    }
26
27
    /**
28
     * @inheritdoc
29
     */
30
    public function fetch($mode = \PDO::FETCH_ASSOC)
31
    {
32
        return null;
33
    }
34
35
    /**
36
     * @inheritdoc
37
     */
38
    public function execute()
39
    {
40
        return $this;
41
    }
42
43
    /**
44
     * @inheritdoc
45
     */
46
    public function rowCount()
47
    {
48
        return null;
49
    }
50
}