Skip to content

Commit bfa1500

Browse files
committed
Added PaginationAwareInterface
1 parent 1152539 commit bfa1500

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/contracts/Values/Query/AbstractCriterionQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* @template TSortClause of \Ibexa\Contracts\CoreSearch\Values\Query\AbstractSortClause
1515
* @template TCriterion of \Ibexa\Contracts\CoreSearch\Values\Query\Criterion\CriterionInterface
1616
*/
17-
abstract class AbstractCriterionQuery
17+
abstract class AbstractCriterionQuery implements PaginationAwareInterface
1818
{
1919
public const int DEFAULT_LIMIT = 25;
2020

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace Ibexa\Contracts\CoreSearch\Values\Query;
4+
5+
interface PaginationAwareInterface
6+
{
7+
public function getOffset(): int;
8+
9+
public function getLimit(): ?int;
10+
}

0 commit comments

Comments
 (0)