Completed
Push — develop ( edb8bf...6f43a0 )
by Nate
08:26
created

TokenIndex   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 17
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/patron/license
6
 * @link       https://www.flipboxfactory.com/software/patron/
7
 */
8
9
namespace flipbox\patron\actions\token;
10
11
use flipbox\craft\ember\actions\records\RecordIndex;
12
use flipbox\craft\ember\helpers\QueryHelper;
13
use flipbox\patron\records\Token;
14
use yii\db\QueryInterface;
15
16
/**
17
 * @author Flipbox Factory <[email protected]>
18
 * @since 1.0.0
19
 */
20
class TokenIndex extends RecordIndex
21
{
22
    /**
23
     * @inheritdoc
24
     */
25
    protected function createQuery(array $config = []): QueryInterface
26
    {
27
        $query = Token::find();
28
29
        QueryHelper::configure(
30
            $query,
31
            $config
32
        );
33
34
        return $query;
35
    }
36
}
37