Skip to content

Payment Method Id Sort Clause

The Id Sort Clause sorts search results by payment method ID.

Arguments

  • (optional) sortDirection - Id constant, either Id::SORT_ASC or Id::SORT_DESC

Example

1
2
3
4
5
6
7
$paymentMethodQuery = new PaymentMethodQuery(
    $criteria,
    [
        new \Ibexa\Contracts\Payment\PaymentMethod\Query\SortClause\Id(
            \Ibexa\Contracts\Payment\PaymentMethod\Query\SortClause\Id::SORT_ASC)
    ]
);