ConfigTrait   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 19
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A setConfig() 0 3 1
1
<?php
2
3
namespace Aosmak\Laravel\Layer\Sdk\Traits;
4
5
/**
6
 * Trait ConfigTrait
7
 * @package namespace Aosmak\Laravel\Layer\Sdk\Traits
8
 */
9
trait ConfigTrait
10
{
11
    /**
12
     * Config
13
     *
14
     * @var array contains configuration variables
15
     */
16
    protected $config;
17
18
    /**
19
     * Set config
20
     *
21
     * @param array $config contains configuration variables
22
     *
23
     * @return void
24
     */
25 53
    public function setConfig(array $config): void
26
    {
27 53
        $this->config = $config;
28 53
    }
29
}
30