%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/tjamichg/cursos.tjamich.gob.mx/plugin/ims_lti/src/
Upload File :
Create Path :
Current File : /home/tjamichg/cursos.tjamich.gob.mx/plugin/ims_lti/src/ImsLtiServiceResponseFactory.php

<?php
/* For licensing terms, see /license.txt */

/**
 * Class ImsLtiServiceResponseFactory.
 */
class ImsLtiServiceResponseFactory
{
    /**
     * @param string $type
     * @param mixed  $bodyParam
     *
     * @return ImsLtiServiceResponse|null
     */
    public static function create($type, ImsLtiServiceResponseStatus $statusInfo, $bodyParam = null)
    {
        switch ($type) {
            case ImsLtiServiceResponse::TYPE_REPLACE:
                return new ImsLtiServiceReplaceResponse($statusInfo, $bodyParam);
            case ImsLtiServiceResponse::TYPE_READ:
                return new ImsLtiServiceReadResponse($statusInfo, $bodyParam);
            case ImsLtiServiceResponse::TYPE_DELETE:
                return new ImsLtiServiceDeleteResponse($statusInfo, $bodyParam);
            default:
                return new ImsLtiServiceUnsupportedResponse($statusInfo, $type);
        }

        return null;
    }
}

Zerion Mini Shell 1.0