Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/contracts/Values/Query/AbstractCriterionQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @template TSortClause of \Ibexa\Contracts\CoreSearch\Values\Query\AbstractSortClause
* @template TCriterion of \Ibexa\Contracts\CoreSearch\Values\Query\Criterion\CriterionInterface
*/
abstract class AbstractCriterionQuery
abstract class AbstractCriterionQuery implements PaginationAwareInterface
{
public const int DEFAULT_LIMIT = 25;

Expand Down
16 changes: 16 additions & 0 deletions src/contracts/Values/Query/PaginationAwareInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

/**
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
declare(strict_types=1);

namespace Ibexa\Contracts\CoreSearch\Values\Query;

interface PaginationAwareInterface
{
public function getOffset(): int;

public function getLimit(): ?int;
}
Loading