AzineQueryMock::_doExecute()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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