Completed
Push — master ( f3d932...88ba9b )
by Dmitry
03:14
created

Specification   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A requestRelation() 0 4 1
1
<?php
2
3
namespace hiapi\query;
4
5
use yii\db\QueryTrait;
6
7
class Specification
8
{
9
    use QueryTrait;
10
11
    public $requestedRelations = [];
12
13
    public function requestRelation($name)
14
    {
15
        $this->requestedRelations[$name] = true; // todo: specification for relation
16
    }
17
}
18