LangQuery::active()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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