Completed
Push — master ( 04ac75...81967b )
by Nate
17:06
created

Populate   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
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 16
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

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://flipboxfactory.com/software/patron/license
6
 * @link       https://www.flipboxfactory.com/software/patron/
7
 */
8
9
namespace flipbox\patron\actions\token\traits;
10
11
/**
12
 * @author Flipbox Factory <[email protected]>
13
 * @since 1.0.0
14
 */
15
trait Populate
16
{
17
    /**
18
     * These are the default body params that we're accepting.  You can lock down specific Client attributes this way.
19
     *
20
     * @return array
21
     */
22
    protected function validBodyParams(): array
23
    {
24
        return [
25
            'provider',
26
            'enabled',
27
            'environments'
28
        ];
29
    }
30
}
31