Cancelled
Push — master ( bf806a...eb1fd9 )
by Dominik
9s
created

AzineQueryMock   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 55.56%

Importance

Changes 0
Metric Value
wmc 5
lcom 1
cbo 1
dl 0
loc 29
ccs 5
cts 9
cp 0.5556
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A doExecute() 0 4 1
A _doExecute() 0 4 1
A execute() 0 4 1
A getSQL() 0 4 1
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