Info::__construct()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 2
nc 2
nop 1
crap 2
1
<?php
2
3
namespace HughCube\IpDb\Proxies;
4
5
/**
6
 * Class Info.
7
 */
8
class Info
9
{
10 4
    public function __construct(array $data)
11
    {
12 4
        foreach ($data as $field => $value) {
13 4
            $this->{$field} = $value;
14
        }
15 4
    }
16
}
17