UpdateConnection::run()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 0
cts 4
cp 0
rs 10
cc 1
nc 1
nop 1
crap 2
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