# Shipment LogicalAnd Criterion

> For the complete documentation index, see [llms.txt](https://doc.ibexa.co/en/6.0/llms.txt).

Shipment LogicalAnd Search Criterion

Editions: Commerce SDK

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

## Arguments

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

## Example

### PHP

```php
use Ibexa\Contracts\Shipping\Shipment\Query\Criterion\CreatedAt;
use Ibexa\Contracts\Shipping\Shipment\Query\Criterion\LogicalAnd;
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 LogicalAnd(
        new CreatedAt(new DateTime('2023-03-01')),
        new ShippingMethod($shippingMethod)
    )
);
```
