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

Query::apply()   A

Complexity

Conditions 3
Paths 4

Size

Total Lines 12
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 12

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 12
ccs 0
cts 4
cp 0
rs 9.4285
cc 3
eloc 6
nc 4
nop 1
crap 12

1 Method

Rating   Name   Duplication   Size   Complexity  
A Query::__construct() 0 6 1
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