| 1 | <?php |
||
| 6 | class LimitedRelationRecipe extends RelationRecipe implements IRelationRecipe |
||
| 7 | { |
||
| 8 | private $relRecipe; |
||
| 9 | private $limit; |
||
| 10 | private $offset; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * LimitedRelationRecipe constructor. |
||
| 14 | * |
||
| 15 | * @param IRelationRecipe $relRecipe recipe for relation to limit |
||
| 16 | * @param int|null $limit maximal number of rows to return; <tt>null</tt> for unlimited number of rows |
||
| 17 | * @param int $offset a non-negative offset - the number of original rows to skip |
||
| 18 | */ |
||
| 19 | public function __construct(IRelationRecipe $relRecipe, $limit, int $offset = 0) |
||
| 29 | |||
| 30 | public function toSql(ITypeDictionary $typeDictionary) : string |
||
| 40 | } |
||
| 41 |