BaseMongoEntityQuery::init()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
crap 1
1
<?php
2
3
/**
4
 *  _   __ __ _____ _____ ___  ____  _____
5
 * | | / // // ___//_  _//   ||  __||_   _|
6
 * | |/ // /(__  )  / / / /| || |     | |
7
 * |___//_//____/  /_/ /_/ |_||_|     |_|
8
 * @link http://vistart.name/
9
 * @copyright Copyright (c) 2016 vistart
10
 * @license http://vistart.name/license/
11
 */
12
13
namespace vistart\Models\queries;
14
15
use vistart\Models\traits\EntityQueryTrait;
16
use yii\mongodb\ActiveQuery;
17
18
/**
19
 * Description of BaseMongoEntityQuery
20
 *
21
 * @version 2.0
22
 * @author vistart <[email protected]>
23
 */
24
class BaseMongoEntityQuery extends ActiveQuery
25
{
26
    use EntityQueryTrait;
27
28 10
    public function init()
29
    {
30 10
        $this->buildNoInitModel();
31 10
        parent::init();
32 10
    }
33
}
34