AzineQueryMock   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 2
Bugs 1 Features 1
Metric Value
eloc 6
c 2
b 1
f 1
dl 0
loc 23
rs 10
wmc 4

4 Methods

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