Copied!

OrderQuery

OrderQuery.php : 13

Constants

publicDEFAULT_LIMIT

OrderQuery.php : 18
public mixed DEFAULT_LIMIT = 25

publicSORT_ASC

OrderQuery.php : 15
public mixed SORT_ASC = 'ascending'

publicSORT_DESC

OrderQuery.php : 16
public mixed SORT_DESC = 'descending'

Methods

public__construct()

OrderQuery.php : 32
public __construct([CriterionInterface|null $query = null ][, array<string|int, SortClauseInterface$sortClauses = [] ][, int $limit = self::DEFAULT_LIMIT ][, int $offset = 0 ])

Parameters

Name Type Default value Description
$query CriterionInterface|null null -
$sortClauses array<string|int, SortClauseInterface> [] -
$limit int OrderQuery::DEFAULT_LIMIT -
$offset int 0 -

publicgetLimit()

OrderQuery.php : 65
public getLimit() : int

Return values

int

publicgetOffset()

OrderQuery.php : 75
public getOffset() : int

Return values

int

publicgetQuery()

OrderQuery.php : 44
public getQuery() : CriterionInterface|null

Return values

CriterionInterface|null

publicgetSortClauses()

OrderQuery.php : 52
public getSortClauses() : array<string|int, SortClauseInterface>

Return values

array<string|int, SortClauseInterface>

publicsetLimit()

OrderQuery.php : 70
public setLimit(int $limit) : void

Parameters

Name Type Default value Description
$limit int - -

publicsetOffset()

OrderQuery.php : 80
public setOffset(int $offset) : void

Parameters

Name Type Default value Description
$offset int - -

publicsetSortClauses()

OrderQuery.php : 60
public setSortClauses(array<string|int, SortClauseInterface$sortClauses) : void

Parameters

Name Type Default value Description
$sortClauses array<string|int, SortClauseInterface> - -