AzineQueryMock::execute()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 2
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
1
<?php
2
3
namespace Azine\EmailBundle\Tests;
4
5
use Doctrine\ORM\AbstractQuery;
6
7
/**
8
 * @author Dominik Businger
9
 */
10
class AzineQueryMock extends AbstractQuery
11
{
12
    private $result;
13
14 3
    public function __construct($result)
15
    {
16 3
        $this->result = $result;
17 3
    }
18
19
    protected function doExecute()
20
    {
21
        return;
22
    }
23
24 3
    protected function _doExecute()
25
    {
26 3
        return;
27
    }
28
29
    public function execute($parameters = null, $hydrationMode = null)
30
    {
31
        return $this->result;
32
    }
33
34
    public function getSQL()
35
    {
36
        return 'dummy sql';
37
    }
38
}
39