LangQuery   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 7
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A active() 0 4 1
1
<?php
2
/**
3
 * @link https://github.com/LAV45/yii2-translated-behavior
4
 * @copyright Copyright (c) 2015 LAV45!
5
 * @author Alexey Loban <[email protected]>
6
 * @license http://opensource.org/licenses/BSD-3-Clause
7
 */
8
9
namespace lav45\translate\models;
10
11
use yii\db\ActiveQuery;
12
13
/**
14
 * This is the ActiveQuery class for [[Lang]].
15
 *
16
 * @see Lang
17
 */
18
class LangQuery extends ActiveQuery
19
{
20
    public function active()
21
    {
22
        return $this->andWhere(['status' => Lang::STATUS_ACTIVE]);
23
    }
24
}
25