| Conditions | 4 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | protected function loadMappingFile($file) |
||
| 26 | { |
||
| 27 | $result = array(); |
||
| 28 | $xmlElement = simplexml_load_file($file); |
||
| 29 | foreach (array('document', 'embedded-document', 'mapped-superclass') as $type) { |
||
| 30 | if (isset($xmlElement->$type)) { |
||
| 31 | foreach ($xmlElement->$type as $documentElement) { |
||
| 32 | $documentName = (string) $documentElement['name']; |
||
| 33 | $result[$documentName] = $documentElement; |
||
| 34 | } |
||
| 35 | } |
||
| 36 | } |
||
| 37 | |||
| 38 | return $result; |
||
| 39 | } |
||
| 40 | |||
| 49 |