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