Skip to content

Payment Status Sort Clause

The Status Sort Clause sorts search results by payment status.

Arguments

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

Example

1
2
3
4
5
6
7
$paymentQuery = new PaymentQuery(
    $criteria,
    [
        new \Ibexa\Contracts\Payment\Payment\Query\SortClause\Status(
            \Ibexa\Contracts\Payment\Payment\Query\SortClause\Status::SORT_ASC)
    ]
);
/div>