Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2.0625 |
Changes | 0 |
1 | <?php |
||
49 | 1 | public function getProtocolVersionBinaryRepresentation(): string { |
|
50 | 1 | if ($this->protocolVersion === '3.1.1') { |
|
51 | // Protocol v3.1.1 must return a 4 |
||
52 | 1 | return \chr(4); |
|
53 | } |
||
54 | |||
55 | // Return a default of 0, which will be invalid anyway (but data will be sent to the broker this way) |
||
56 | return \chr(0); |
||
57 | } |
||
64 |