| Conditions | 5 |
| Paths | 5 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public static function create(SimpleXMLElement $xml) |
||
| 15 | { |
||
| 16 | $bodyChildren = $xml->imsx_POXBody->children(); |
||
| 17 | |||
| 18 | if (!empty($bodyChildren)) { |
||
| 19 | switch ($bodyChildren->getName()) { |
||
| 20 | case 'replaceResultRequest': |
||
| 21 | return new ImsLtiServiceReplaceRequest($xml); |
||
| 22 | case 'readResultRequest': |
||
| 23 | return new ImsLtiServiceReadRequest($xml); |
||
| 24 | case 'deleteResultRequest': |
||
| 25 | return new ImsLtiServiceDeleteRequest($xml); |
||
| 26 | } |
||
| 27 | } |
||
| 28 | |||
| 29 | return null; |
||
| 30 | } |
||
| 32 |