Skip to content

Shipment LogicalAnd Criterion

The LogicalAnd Search Criterion matches shipments if all provided Criteria match.

Arguments

  • criterion - a set of Criteria combined by the logical operator

Example

1
2
3
4
5
$query->query = new \Ibexa\Contracts\Shipping\Shipment\Query\Criterion\LogicalAnd([
    new \Ibexa\Contracts\Shipping\Shipment\Query\Criterion\CreatedAt(new DateTime('2023-03-01')),
    new \Ibexa\Contracts\Shipping\Shipment\Query\Criterion\ShippingMethod($shippingMethod)
    ]
);