Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
25 | public static function createFromXML(SimpleXMLElement $xml) |
||
26 | { |
||
27 | /* |
||
28 | <characteristic displayValue="Basic (0-500 EUR)" value="1" name="Insurance range code"/> |
||
29 | */ |
||
30 | $attributes = $xml->attributes(); |
||
31 | |||
32 | $option = new self(); |
||
33 | $option->setDisplayValue($attributes['displayValue']); |
||
34 | $option->setValue($attributes['value']); |
||
35 | $option->setName($attributes['name']); |
||
36 | |||
37 | return $option; |
||
38 | } |
||
39 | |||
89 |