Completed
Push — master ( d2e043...09ed12 )
by Changwan
12:25
created

Configuration   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 15
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 2
1
<?php
2
namespace Wandu\View\Phiew;
3
4
class Configuration
5
{
6
    /** @var \SplFileInfo[] */
7
    public $path = [];
8
    
9
    /**
10
     * @param array $attributes
11
     */
12 6
    public function __construct(array $attributes = [])
13
    {
14 6
        foreach ($attributes as $key => $value) {
15 6
            $this->{$key} = $value;
16
        }
17 6
    }
18
}
19