Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
29 | public function fillObject(string $rawMQTTHeaders, ClientInterface $client): ReadableContentInterface |
||
30 | { |
||
31 | // Read the rest of the request out should only 1 byte have come in |
||
32 | if (\strlen($rawMQTTHeaders) === 1) { |
||
33 | $rawMQTTHeaders .= $client->readSocketData(3); |
||
34 | } |
||
35 | |||
36 | $this->packetIdentifier = $this->extractPacketIdentifier($rawMQTTHeaders); |
||
37 | return $this; |
||
38 | } |
||
55 |