Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
57 | 4 | public function getProtocolVersionBinaryRepresentation(): string |
|
58 | { |
||
59 | 4 | if ($this->protocolVersion === '3.1.1') { |
|
60 | // Protocol v3.1.1 must return a 4 |
||
61 | 3 | return chr(4); |
|
62 | } |
||
63 | |||
64 | // Return a default of 0, which will be invalid anyway (but data will be sent to the broker this way) |
||
65 | 1 | return chr(0); |
|
66 | } |
||
73 |