Conditions | 4 |
Paths | 8 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 4.25 |
Changes | 0 |
1 | <?php |
||
36 | 1 | public function __construct(array $error) |
|
37 | { |
||
38 | 1 | if (isset($error['property'])) { |
|
39 | $this->property = $error['property']; |
||
40 | } |
||
41 | 1 | if (isset($error['message'])) { |
|
42 | 1 | $this->message = $error['message']; |
|
43 | } |
||
44 | 1 | if (isset($error['constraint'])) { |
|
45 | $this->constraint = $error['constraint']; |
||
46 | } |
||
47 | 1 | } |
|
48 | |||
79 |