Conditions | 5 |
Paths | 16 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 5.025 |
Changes | 0 |
1 | <?php |
||
28 | 6 | public function __construct($values) |
|
29 | { |
||
30 | 6 | if (isset($values['value'])) { |
|
31 | $this->name = $values['value']; |
||
32 | } |
||
33 | 6 | if (isset($values['name'])) { |
|
34 | 6 | $this->name = $values['name']; |
|
35 | } |
||
36 | 6 | $this->identifier = $this->name; |
|
37 | 6 | if (isset($values['identifier'])) { |
|
38 | 6 | $this->identifier = $values['identifier']; |
|
39 | } |
||
40 | 6 | if (isset($values['code'])) { |
|
41 | 6 | $this->code = $values['code']; |
|
42 | } |
||
69 |