Passed
Push — master ( 65060b...2b54a2 )
by Julito
10:15
created

ImsLtiServiceReplaceResponse::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 5
rs 10
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
/**
5
 * Class ImsLtiReplaceServiceResponse.
6
 */
7
class ImsLtiServiceReplaceResponse extends ImsLtiServiceResponse
8
{
9
    /**
10
     * ImsLtiServiceReplaceResponse constructor.
11
     *
12
     * @param ImsLtiServiceResponseStatus $statusInfo
13
     * @param mixed|null                  $bodyParam
14
     */
15
    public function __construct(ImsLtiServiceResponseStatus $statusInfo, $bodyParam = null)
16
    {
17
        $statusInfo->setOperationRefIdentifier('replaceResult');
18
19
        parent::__construct($statusInfo, $bodyParam);
20
    }
21
22
    /**
23
     * @param SimpleXMLElement $xmlBody
24
     */
25
    protected function generateBody(SimpleXMLElement $xmlBody)
26
    {
27
        $xmlBody->addChild('replaceResultResponse');
28
    }
29
}
30