UserProviderQuery   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 15
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A provider() 0 5 1
1
<?php
2
3
namespace app\models\query;
4
5
use yii\db\ActiveQuery;
6
7
/**
8
 * This is the ActiveQuery class for [[\entity\UserProvider]]
9
 *
10
 * @see \entity\UserProvider
11
 */
12
class UserProviderQuery extends ActiveQuery
13
{
14
    /**
15
     * Select by type of provider
16
     *
17
     * @param int $type
18
     * @param string $profileId
19
     * @return yii\db\ActiveQuery
20
     */
21
    public function provider(int $type, string $profileId): ActiveQuery
22
    {
23
        $this->andWhere(['type' => $type, 'profile_id' => $profileId]);
24
        return $this;
25
    }
26
}
27