Conditions | 3 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
39 | public static function createFromXML(SimpleXMLElement $xml) |
||
40 | { |
||
41 | $productConfiguration = new self(); |
||
42 | $children = $xml->children(); |
||
43 | |||
44 | if (isset($children->deliveryMethod)) { |
||
45 | foreach ($children->deliveryMethod as $deliveryMethodXml) { |
||
46 | $productConfiguration->addDeliveryMethod(DeliveryMethod::createFromXML($deliveryMethodXml)); |
||
47 | } |
||
48 | } |
||
49 | |||
50 | return $productConfiguration; |
||
51 | } |
||
52 | } |
||
53 |