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

PacUser   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 21
c 0
b 0
f 0
wmc 2
lcom 1
cbo 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A map() 0 8 2
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