| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function __construct(IRelationDefinition $relationDefinition, $limit, int $offset = 0) |
||
| 18 | { |
||
| 19 | if ($offset < 0) { |
||
| 20 | throw new \InvalidArgumentException('$offset is negative'); |
||
| 21 | } |
||
| 22 | |||
| 23 | $this->baseRelDef = $relationDefinition; |
||
| 24 | $this->limit = ($limit !== null ? (int)$limit : null); // PHP 7.1: declare the type as ?int |
||
| 25 | $this->offset = $offset; |
||
| 26 | } |
||
| 27 | |||
| 39 |