| 1 | <?php |
||
| 4 | abstract class RelationRecipe implements IRelationRecipe |
||
| 5 | { |
||
| 6 | /** |
||
| 7 | * Creates this recipe limited only to certain number of rows, or starting from a certain row. |
||
| 8 | * |
||
| 9 | * @param int|null $limit the number of rows to limit this relation to; <tt>null</tt> means no limit |
||
| 10 | * @param int $offset the number of leading rows to skip |
||
| 11 | * @return IRelationRecipe recipe for relation containing at most <tt>$limit</tt> rows, skipping the first |
||
| 12 | * <tt>$offset</tt> rows |
||
| 13 | */ |
||
| 14 | public function limit($limit, int $offset = 0) |
||
| 18 | } |
||
| 19 |