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