Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
67 | public function getXml(): MyXML |
||
68 | { |
||
69 | $oXml = new MyXML('Screen'); |
||
70 | $oXml->insertChild($this->getPage()->getXml()->asObject()); |
||
71 | |||
72 | $oEvents = new MyXML('Events'); |
||
73 | foreach ($this->tEvents as $oEvent) { |
||
74 | $oEvents->insertChild($oEvent->getXml()->asObject()); |
||
75 | } |
||
76 | $oXml->insertChild($oEvents->asObject()); |
||
77 | |||
78 | return $oXml; |
||
79 | } |
||
80 | |||
89 |