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

Configuration::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 1
dl 0
loc 6
ccs 4
cts 4
cp 1
crap 2
rs 9.4285
c 0
b 0
f 0
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