UpdateConnection   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
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 20
ccs 0
cts 4
cp 0
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://github.com/flipboxfactory/craft-integration/blob/master/LICENSE
6
 * @link       https://github.com/flipboxfactory/craft-integration/
7
 */
8
9
namespace flipbox\craft\integration\actions\connections;
10
11
use flipbox\craft\ember\actions\records\UpdateRecord;
12
13
/**
14
 * @author Flipbox Factory <[email protected]>
15
 * @since 2.0.0
16
 */
17
abstract class UpdateConnection extends UpdateRecord
18
{
19
    /**
20
     * @return array
21
     */
22
    public $validBodyParams = [
23
        'name',
24
        'handle',
25
        'class',
26
        'enabled'
27
    ];
28
29
    /**
30
     * @inheritdoc
31
     */
32
    public function run($connection)
33
    {
34
        return parent::run($connection);
35
    }
36
}
37