| 1 | <?php |
||
| 6 | class LimitedRelationDefinition extends RelationDefinition implements IRelationDefinition |
||
| 7 | { |
||
| 8 | private $baseRelDef; |
||
| 9 | private $limit; |
||
| 10 | private $offset; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param IRelationDefinition $relationDefinition definition of relation to limit |
||
| 14 | * @param int|null $limit maximal number of rows to return; <tt>null</tt> for unlimited number of rows |
||
| 15 | * @param int $offset a non-negative offset - the number of original rows to skip |
||
| 16 | */ |
||
| 17 | public function __construct(IRelationDefinition $relationDefinition, $limit, int $offset = 0) |
||
| 27 | |||
| 28 | public function toSql(ITypeDictionary $typeDictionary): string |
||
| 38 | } |
||
| 39 |