RequestACSResendRequest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
c 1
b 0
f 0
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getMessageString() 0 4 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