Copied!

ProductQuery

ProductQuery.php : 13

Constants

publicDEFAULT_LIMIT

ProductQuery.php : 18
public mixed DEFAULT_LIMIT = 25

publicSORT_ASC

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

publicSORT_DESC

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

Methods

public__construct()

ProductQuery.php : 38
public __construct([CriterionInterface|null $filter = null ][, CriterionInterface|null $query = null ][, array<string|int, SortClause$sortClauses = [] ][, int $offset = 0 ][, int $limit = self::DEFAULT_LIMIT ][, array<string|int, Aggregation$aggregations = [] ])

Parameters

Name Type Default value Description
$filter CriterionInterface|null null -
$query CriterionInterface|null null -
$sortClauses array<string|int, SortClause> [] -
$offset int 0 -
$limit int ProductQuery::DEFAULT_LIMIT -
$aggregations array<string|int, Aggregation> [] -

publicgetAggregations()

ProductQuery.php : 123
public getAggregations() : array<string|int, Aggregation>

Return values

array<string|int, Aggregation>

publicgetFilter()

ProductQuery.php : 54
public getFilter() : CriterionInterface|null

Return values

CriterionInterface|null

publicgetLimit()

ProductQuery.php : 94
public getLimit() : int

Return values

int

publicgetOffset()

ProductQuery.php : 84
public getOffset() : int

Return values

int

publicgetQuery()

ProductQuery.php : 69
public getQuery() : CriterionInterface|null

Return values

CriterionInterface|null

publicgetSortClauses()

ProductQuery.php : 107
public getSortClauses() : array<string|int, SortClause>

Return values

array<string|int, SortClause>

publichasFilter()

ProductQuery.php : 59
public hasFilter() : bool

Return values

bool

publichasQuery()

ProductQuery.php : 74
public hasQuery() : bool

Return values

bool

publicsetAggregations()

ProductQuery.php : 131
public setAggregations(array<string|int, Aggregation$aggregations) : void

Parameters

Name Type Default value Description
$aggregations array<string|int, Aggregation> - -

publicsetFilter()

ProductQuery.php : 64
public setFilter(CriterionInterface|null $filter) : void

Parameters

Name Type Default value Description
$filter CriterionInterface|null - -

publicsetLimit()

ProductQuery.php : 99
public setLimit(int $limit) : void

Parameters

Name Type Default value Description
$limit int - -

publicsetOffset()

ProductQuery.php : 89
public setOffset(int $offset) : void

Parameters

Name Type Default value Description
$offset int - -

publicsetQuery()

ProductQuery.php : 79
public setQuery(CriterionInterface|null $query) : void

Parameters

Name Type Default value Description
$query CriterionInterface|null - -

publicsetSortClauses()

ProductQuery.php : 115
public setSortClauses(array<string|int, SortClause$sortClauses) : void

Parameters

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