RequestACSResendRequest::getMessageString()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 2
crap 1
1
<?php
2
3
namespace lordelph\SIP2\Request;
4
5
/**
6
 * RequestACSResendRequest requests the ACS to re-transmit its last message. It is sent by the SC to the ACS when the
7
 * checksum in a received message does not match the value calculated by the SC. The ACS should respond by
8
 * re-transmitting its last message, This message should never include a “sequence number” field, even when error
9
 * detection is enabled, but would include a “checksum” field since checksums are in use.
10
 *
11
 * @licence    https://opensource.org/licenses/MIT
12
 * @copyright  John Wohlers <[email protected]>
13
 * @copyright  Paul Dixon <[email protected]>
14
 */
15
class RequestACSResendRequest extends SIP2Request
16
{
17 1
    public function getMessageString($withSeq = true, $withCrc = true): string
18
    {
19 1
        $this->newMessage('97');
20 1
        return $this->returnMessage($withSeq, $withCrc);
21
    }
22
}
23