Storage   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A reset() 0 4 1
1
<?php
2
/**
3
 * Yii 2 config loader
4
 *
5
 * @see       https://github.com/sergeymakinen/yii2-config
6
 * @copyright Copyright (c) 2016 Sergey Makinen (https://makinen.ru)
7
 * @license   https://github.com/sergeymakinen/yii2-config/blob/master/LICENSE The MIT License
8
 */
9
10
namespace sergeymakinen\yii\config;
11
12
use yii\base\BaseObject;
13
14
/**
15
 * Internal config object.
16
 *
17
 * It's used to store bootstrap and config parts in loaders.
18
 */
19
class Storage extends BaseObject
20
{
21
    /**
22
     * @var string[] config bootstrap (strings of a PHP code).
23
     */
24
    public $bootstrap = [];
25
26
    /**
27
     * @var array config array.
28
     */
29
    public $config = [];
30
31
    /**
32
     * Resets the properties to an empty array.
33
     */
34 52
    public function reset()
35
    {
36 52
        $this->bootstrap = $this->config = [];
37 52
    }
38
}
39