SettingsSheet   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 9
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A byImportFileId() 0 2 1
A byImportSettingId() 0 3 1
1
<?php
2
/**
3
 * User: execut
4
 * Date: 29.07.16
5
 * Time: 17:06
6
 */
7
8
namespace execut\import\models\queries;
9
10
11
use yii\db\ActiveQuery;
12
use execut\import\models;
13
14
class SettingsSheet extends ActiveQuery
15
{
16
    public function byImportFileId($id) {
17
        return $this->byImportSettingId(models\Setting::find()->byImportFileId($id)->select('id'));
18
    }
19
20
    public function byImportSettingId($id) {
21
        return $this->andWhere([
22
            'import_setting_id' => $id,
23
        ]);
24
    }
25
}