Conditions | 7 |
Paths | 7 |
Total Lines | 24 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function __construct(\SimpleXMLElement $xmlData) |
||
23 | { |
||
24 | parent::__construct($xmlData); |
||
25 | if($xmlData !== null) |
||
26 | { |
||
27 | foreach ($xmlData->children() as $child) { |
||
28 | switch ($child->getName()) { |
||
29 | case 'family': |
||
30 | switch ($child->__toString()) { |
||
31 | case 'UNX': |
||
32 | $this->Family = UNX; |
||
33 | break; |
||
34 | case 'MC': |
||
35 | $this->Family = MC; |
||
36 | break; |
||
37 | case 'WIN': |
||
38 | $this->Family = WIN; |
||
39 | break; |
||
40 | } |
||
41 | break; |
||
42 | } |
||
43 | } |
||
44 | } |
||
45 | } |
||
46 | |||
57 |