| Conditions | 4 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public static function create($type, ImsLtiServiceResponseStatus $statusInfo, $bodyParam = null) |
||
| 17 | { |
||
| 18 | switch ($type) { |
||
| 19 | case ImsLtiServiceResponse::TYPE_REPLACE: |
||
| 20 | return new ImsLtiServiceReplaceResponse($statusInfo, $bodyParam); |
||
| 21 | case ImsLtiServiceResponse::TYPE_READ: |
||
| 22 | return new ImsLtiServiceReadResponse($statusInfo, $bodyParam); |
||
| 23 | case ImsLtiServiceResponse::TYPE_DELETE: |
||
| 24 | return new ImsLtiServiceDeleteResponse($statusInfo, $bodyParam); |
||
| 25 | } |
||
| 26 | |||
| 27 | return null; |
||
| 28 | } |
||
| 29 | } |