This class is the base for SortClause classes, used to set sorting of shipping method queries.
Constants¶
SORT_ASC ¶
AbstractSortClause.php
:
16
|
|
SORT_DESC ¶
AbstractSortClause.php
:
19
|
|
Methods¶
__construct() ¶
AbstractSortClause.php
:
33
Constructs a new SortClause on $sortTarget in direction $sortDirection.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$sortDirection | string | AbstractSortClause::SORT_ASC |
one of SortDirection::ASC or SortDirection::DESC |
getDirection() ¶
AbstractSortClause.php
:
39
|
|
Return values
string
setDirection() ¶
AbstractSortClause.php
:
47
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$direction | string | - | - |