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

UpdateToken   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 4 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\UpdateRecord;
12
use yii\db\ActiveRecord;
13
14
/**
15
 * @author Flipbox Factory <[email protected]>
16
 * @since 1.0.0
17
 */
18
class UpdateToken extends UpdateRecord
0 ignored issues
show
Bug introduced by
There is at least one abstract method in this class. Maybe declare it as abstract, or implement the remaining methods: performAction, validBodyParams
Loading history...
19
{
20
    use LookupTokenTrait;
21
22
    /**
23
     * @inheritdoc
24
     */
25
    public $validBodyParams = [
26
        'provider',
27
        'enabled',
28
        'environments'
29
    ];
30
31
    /**
32
     * @inheritdoc
33
     */
34
    public function run($token)
35
    {
36
        return parent::run($token);
37
    }
38
}
39