PacUser   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

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 = 'P';
10
11
    public $credit = 0;
12
13
    public $counter = 0;
14
15
    public $status = 'A';
16
17
    public $added;
18
19
    public function map(array $attributes)
20
    {
21
        foreach ($attributes as $attribute => $value) {
22
            $this->{$attribute} = $value;
23
        }
24
25
        return $this;
26
    }
27
}
28