Passed
Push — master ( bc3840...800ced )
by Camilo
01:52
created

PingReq::expectAnswer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 2
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace unreal4u\MQTT\Protocol;
6
7
use unreal4u\MQTT\Internals\ProtocolBase;
8
use unreal4u\MQTT\Internals\WritableContent;
9
use unreal4u\MQTT\Internals\WritableContentInterface;
10
11
final class PingReq extends ProtocolBase implements WritableContentInterface
12
{
13
    use WritableContent;
14
15
    const CONTROL_PACKET_VALUE = 12;
16
17 1
    public function createVariableHeader(): string
18
    {
19 1
        return '';
20
    }
21
22 1
    public function createPayload(): string
23
    {
24 1
        return '';
25
    }
26
27
    public function shouldExpectAnswer(): bool
28
    {
29
        return true;
30
    }
31
}
32