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

CustomerQuery   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A active() 0 5 1
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