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

Query   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 22
ccs 0
cts 5
cp 0
rs 10

2 Methods

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