| Total Complexity | 5 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | final class PubComp extends ProtocolBase implements ReadableContentInterface, WritableContentInterface |
||
| 15 | { |
||
| 16 | use ReadableContent; |
||
| 17 | use WritableContent; |
||
| 18 | |||
| 19 | public $packetIdentifier = 0; |
||
| 20 | |||
| 21 | const CONTROL_PACKET_VALUE = 7; |
||
| 22 | |||
| 23 | public function fillObject(string $rawMQTTHeaders, ClientInterface $client): ReadableContentInterface |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Creates the variable header that each method has |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | public function createVariableHeader(): string |
||
| 34 | { |
||
| 35 | // TODO: Implement createVariableHeader() method. |
||
| 36 | return ''; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Creates the actual payload to be sent |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | public function createPayload(): string |
||
| 44 | { |
||
| 45 | // TODO: Implement createPayload() method. |
||
| 46 | return ''; |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @inheritdoc |
||
| 51 | */ |
||
| 52 | public function expectAnswer(string $data, ClientInterface $client): ReadableContentInterface |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Some responses won't expect an answer back, others do in some situations |
||
| 59 | * @return bool |
||
| 60 | */ |
||
| 61 | public function shouldExpectAnswer(): bool |
||
| 64 | } |
||
| 65 | } |
||
| 66 |