Shipment ShippingMethod Criterion
The ShippingMethod Search Criterion searches for shipments based on a shipping method applied to them.
Arguments
value - one or an array of ShippingMethodInterface objects that indicate the shipping methods
Example
PHP
| use Ibexa\Contracts\Shipping\Shipment\Query\Criterion\ShippingMethod;
use Ibexa\Contracts\Shipping\Shipment\ShipmentQuery;
use Ibexa\Contracts\Shipping\Value\ShippingMethod\ShippingMethodInterface;
/** @var ShippingMethodInterface $shippingMethod */
$query = new ShipmentQuery(
new ShippingMethod($shippingMethod)
);
|