SettingsSet::byImportFileId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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 SettingsSet extends ActiveQuery
15
{
16
    public function byImportFileId($id) {
17
        return $this->byImportSettingsSheetId(models\SettingsSheet::find()->byImportFileId($id)->select('id'));
18
    }
19
20
    public function byImportSettingsSheetId($id) {
21
        return $this->andWhere([
22
            'import_settings_sheet_id' => $id,
23
        ]);
24
    }
25
}