OrganizationTypeIndex   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A createQuery() 0 11 1
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 * @license    https://flipboxfactory.com/software/organization/license
6
 * @link       https://www.flipboxfactory.com/software/organization/
7
 */
8
9
namespace flipbox\organizations\actions\organizations;
10
11
use flipbox\craft\ember\actions\records\RecordIndex;
12
use flipbox\craft\ember\helpers\QueryHelper;
13
use flipbox\organizations\records\OrganizationType;
14
use yii\db\QueryInterface;
15
16
/**
17
 * @author Flipbox Factory <[email protected]>
18
 * @since 1.0.0
19
 */
20
class OrganizationTypeIndex extends RecordIndex
21
{
22
    /**
23
     * @inheritdoc
24
     * @return OrganizationType
25
     */
26
    public function createQuery(array $config = []): QueryInterface
27
    {
28
        $query = OrganizationType::find();
29
30
        QueryHelper::configure(
31
            $query,
32
            $config
33
        );
34
35
        return $query;
36
    }
37
}
38