chamilo/chamilo-lms

View on GitHub
public/plugin/ims_lti/src/ImsLtiServiceDeleteResponse.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/* For licensing terms, see /license.txt */

/**
 * Class ImsLtiServiceDeleteResponse.
 */
class ImsLtiServiceDeleteResponse extends ImsLtiServiceResponse
{
    /**
     * ImsLtiServiceDeleteResponse constructor.
     *
     * @param mixed|null $bodyParam
     */
    public function __construct(ImsLtiServiceResponseStatus $statusInfo, $bodyParam = null)
    {
        $statusInfo->setOperationRefIdentifier('deleteResult');

        parent::__construct($statusInfo, $bodyParam);
    }

    protected function generateBody(SimpleXMLElement $xmlBody)
    {
        $xmlBody->addChild('deleteResultResponse');
    }
}