Copied!

CustomPrice

CustomPrice.php : 15
Extends SortClause

This class is the base for SortClause classes, used to set sorting of product queries.

Constants

publicSORT_ASC

AbstractSortClause.php : 16
public mixed SORT_ASC = \Ibexa\Contracts\ProductCatalog\Values\Common\Query\SortDirection::ASC

publicSORT_DESC

AbstractSortClause.php : 19
public mixed SORT_DESC = \Ibexa\Contracts\ProductCatalog\Values\Common\Query\SortDirection::DESC

Methods

public__construct()

CustomPrice.php : 21

Constructs a new SortClause on $sortTarget in direction $sortDirection.

public __construct(CurrencyInterface $currency[, string $sortDirection = self::SORT_ASC ][, CustomerGroupInterface|null $customerGroup = null ])

Parameters

Name Type Default value Description
$currency CurrencyInterface - -
$sortDirection string CustomPrice::SORT_ASC

one of SortDirection::ASC or SortDirection::DESC

$customerGroup CustomerGroupInterface|null null -

publicgetCurrency()

CustomPrice.php : 32
public getCurrency() : CurrencyInterface

Return values

CurrencyInterface

publicgetCustomerGroup()

CustomPrice.php : 37
public getCustomerGroup() : CustomerGroupInterface|null

Return values

CustomerGroupInterface|null

publicgetDirection()

AbstractSortClause.php : 39
public final getDirection() : string

Return values

string

publicsetCustomerGroup()

CustomPrice.php : 42
public setCustomerGroup(CustomerGroupInterface|null $customerGroup) : void

Parameters

Name Type Default value Description
$customerGroup CustomerGroupInterface|null - -

publicsetDirection()

AbstractSortClause.php : 47
public final setDirection(string $direction) : void

Parameters

Name Type Default value Description
$direction string - -
Tags
Throws
InvalidArgumentException

if the given sort direction is invalid