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