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

PopulateConnectionTrait::validBodyParams()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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