Completed
Push — master ( 928248...a75adc )
by Wilmer
14s queued 11s
created

CustomerQuery::active()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\ActiveRecord\Tests\Stubs\ActiveRecord;
6
7
use Yiisoft\ActiveRecord\ActiveQuery;
8
use Yiisoft\ActiveRecord\ActiveRecord;
9
10
/**
11
 * CustomerQuery.
12
 */
13
class CustomerQuery extends ActiveQuery
14
{
15
    public static bool $joinWithProfile = false;
16
17
    public function active(): self
18
    {
19
        $this->andWhere('[[status]]=1');
20
21
        return $this;
22
    }
23
}
24