| Conditions | 4 |
| Paths | 6 |
| Total Lines | 19 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 6 | ||
| Bugs | 2 | Features | 0 |
| 1 | <?php |
||
| 28 | public function process(DOMNode $current = null, $annotationPrefix = 'object') |
||
| 29 | { |
||
| 30 | $xmlDoc = null; |
||
| 31 | if (is_null($current)) { |
||
| 32 | $xmlDoc = XmlUtil::CreateXmlDocument(); |
||
| 33 | $current = XmlUtil::CreateChild($xmlDoc, "root"); |
||
| 34 | } |
||
| 35 | |||
| 36 | foreach ((array) $this->collection as $object) { |
||
| 37 | if ($object instanceof ResponseBag) { |
||
| 38 | $object->process($current); |
||
| 39 | } else { |
||
| 40 | $objHandler = new ObjectHandler($current, $object, $annotationPrefix); |
||
| 41 | $objHandler->CreateObjectFromModel(); |
||
| 42 | } |
||
| 43 | } |
||
| 44 | |||
| 45 | return $xmlDoc; |
||
| 46 | } |
||
| 47 | |||
| 53 |