| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | 9 | public function __construct(int $firstByte, int $lastByte) |
|
| 23 | { |
||
| 24 | 9 | if ($firstByte < 0 || $lastByte < $firstByte) { |
|
| 25 | 2 | throw new \InvalidArgumentException( |
|
| 26 | 2 | 'Last byte must be greater than first byte, and first byte must be greater than zero' |
|
| 27 | ); |
||
| 28 | } |
||
| 29 | |||
| 30 | 7 | $this->firstByte = $firstByte; |
|
| 31 | 7 | $this->lastByte = $lastByte; |
|
| 32 | 7 | } |
|
| 33 | |||
| 60 |