Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | final class EmptyWritableResponse extends ProtocolBase implements WritableContentInterface |
||
18 | { |
||
19 | use /** @noinspection TraitsPropertiesConflictsInspection */ |
||
20 | 1 | WritableContent; |
|
21 | |||
22 | private const CONTROL_PACKET_VALUE = 0; |
||
23 | |||
24 | /** |
||
25 | * Creates the variable header that each method has |
||
26 | * @return string |
||
27 | */ |
||
28 | 1 | public function createVariableHeader(): string |
|
29 | { |
||
30 | 1 | return ''; |
|
31 | } |
||
32 | |||
33 | /** |
||
34 | * Creates the actual payload to be sent |
||
35 | * @return string |
||
36 | */ |
||
37 | 1 | public function createPayload(): string |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * Some responses won't expect an answer back, others do in some situations |
||
44 | * @return bool |
||
45 | */ |
||
46 | 1 | public function shouldExpectAnswer(): bool |
|
51 |