Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2.0116 |
Changes | 0 |
1 | <?php |
||
30 | 96 | public function __construct($command, $length, BufferInterface $checksum) |
|
31 | { |
||
32 | 96 | if ($checksum->getSize() != 4) { |
|
33 | throw new \InvalidArgumentException("Checksum has invalid length"); |
||
34 | } |
||
35 | |||
36 | 96 | $this->command = $command; |
|
37 | 96 | $this->length = $length; |
|
38 | 96 | $this->checksum = $checksum; |
|
39 | 96 | } |
|
40 | |||
65 |