ErrorReturned   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 13
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 2
1
<?php
2
3
namespace MathieuTu\PDFLayer\Exceptions;
4
5
class ErrorReturned
6
{
7
    public $code;
8
    public $type;
9
    public $info;
10
11 1
    public function __construct($error)
12
    {
13 1
        foreach ($error->error as $key => $value) {
14 1
            $this->{$key} = $value;
15
        }
16 1
    }
17
}
18