Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
32 | public function __toXML() |
||
33 | { |
||
34 | $components = explode('\\', get_class($this)); |
||
35 | $rootNode = end($components); |
||
36 | $xml = new \SimpleXMLElement("<?xml version=\"1.0\"?><$rootNode></$rootNode>"); |
||
37 | $array = json_decode(json_encode($this), true); |
||
38 | |||
39 | $this->composeXML($array, $xml); |
||
40 | |||
41 | return $xml; |
||
42 | } |
||
43 | |||
60 |