Completed
Push — master ( c4aed4...1d2e73 )
by Jorge
01:19
created

PacUser::map()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
c 0
b 0
f 0
rs 9.4285
cc 2
eloc 4
nc 2
nop 1
1
<?php
2
3
namespace FeiMx\Pac;
4
5
class PacUser
6
{
7
    public $rfc;
8
9
    public $type = 'O';
10
11
    public $credit;
12
13
    public $status = 'A';
14
15
    public $added;
16
17
    public function map(array $attributes)
18
    {
19
        foreach ($attributes as $attribute => $value) {
20
            $this->{$attribute} = $value;
21
        }
22
23
        return $this;
24
    }
25
}
26