Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function __construct(string $command, int $length, BufferInterface $checksum) |
||
33 | { |
||
34 | if ($checksum->getSize() != 4) { |
||
35 | throw new \InvalidArgumentException("Checksum has invalid length"); |
||
36 | } |
||
37 | |||
38 | $this->command = $command; |
||
39 | $this->length = $length; |
||
40 | $this->checksum = $checksum; |
||
41 | } |
||
67 |