Conditions | 5 |
Paths | 5 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function __construct($xmlData) |
||
27 | { |
||
28 | if($xmlData != null) |
||
29 | { |
||
30 | foreach ($xmlData->children() as $child) { |
||
31 | switch ($child->getName()) { |
||
32 | case 'name': |
||
33 | $this->Name = $child->__toString(); |
||
34 | break; |
||
35 | case 'type': |
||
36 | $this->Type = $child->__toString(); |
||
37 | break; |
||
38 | } |
||
39 | } |
||
40 | } |
||
41 | } |
||
42 | |||
43 | } |