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

ImsLtiServiceReplaceResponse   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 21
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A generateBody() 0 3 1
A __construct() 0 5 1
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