| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 14 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 6 | 
| CRAP Score | 3.1406 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 23 | 1 | public function limit(int|null $limit, int|null $offset = null): static | |
| 24 |     { | ||
| 25 | 1 |         if ($limit < 1) { | |
| 26 |             throw new InvalidArgumentException("limit out of range: {$limit}"); | ||
| 27 | } | ||
| 28 | |||
| 29 | 1 |         if ($offset < 0) { | |
| 30 |             throw new InvalidArgumentException("offset out of range: {$offset}"); | ||
| 31 | } | ||
| 32 | |||
| 33 | 1 | $this->limit = $limit; | |
| 34 | 1 | $this->offset = $offset; | |
| 35 | |||
| 36 | 1 | return $this; | |
| 37 | } | ||
| 70 |