Conditions | 5 |
Paths | 5 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
57 | public function __construct(\SimpleXMLElement $xmlData) |
||
58 | { |
||
59 | if($xmlData !== null) |
||
60 | { |
||
61 | foreach ($xmlData->children() as $child) { |
||
62 | switch ($child->getName()) { |
||
63 | case 'name': |
||
64 | $this->Name = $child->__toString(); |
||
65 | break; |
||
66 | case 'type': |
||
67 | $this->Type = $child->__toString(); |
||
68 | break; |
||
69 | } |
||
70 | } |
||
71 | } |
||
72 | } |
||
73 | |||
79 |