Completed
Push — develop ( 009567...fb0a26 )
by Nate
08:31
created

PopulateConnectionTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 14
c 0
b 0
f 0
ccs 0
cts 8
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A validBodyParams() 0 8 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
/**
12
 * @author Flipbox Factory <[email protected]>
13
 * @since 2.0.0
14
 */
15
trait PopulateConnectionTrait
16
{
17
    /**
18
     * @return array
19
     */
20
    protected function validBodyParams(): array
21
    {
22
        return [
23
            'handle',
24
            'class',
25
            'enabled'
26
        ];
27
    }
28
}
29