Completed
Push — master ( 85994b...9d10cb )
by Dmitry
02:11
created

Query::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
ccs 0
cts 0
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
crap 2
1
<?php
2
3
namespace hiapi\query;
4
5
class Query extends \yii\db\Query
6
{
7
    /**
8
     * @var FieldFactoryInterface
9
     */
10
    protected $fieldFactory;
11
12
    public function __construct(FieldFactoryInterface $filterFactory, array $config = [])
13
    {
14
        parent::__construct($config);
15
16
        $this->fieldFactory = $filterFactory;
17
    }
18
19
    /**
20
     * @return Field[]
21
     */
22
    public function getFields()
23
    {
24
        return [];
25
    }
26
}
27