Skip to content

Payment UpdatedAt Sort Clause

The UpdatedAt Sort Clause sorts search results by the date and time when payment status was updated.

Arguments

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

Example

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