ldc-cocotte/app/Cqs/Queries/Orders/GetFoCustomerPaginatedOrdersQueryInput.php

21 lines
440 B
PHP
Raw Permalink Normal View History

<?php
declare(strict_types=1);
namespace App\Cqs\Queries\Orders;
use App\Contracts\QueryInput;
use App\Models\Customer;
use Shared\Pagination\Pagination;
use Webmozart\Assert\Assert;
final readonly class GetFoCustomerPaginatedOrdersQueryInput implements QueryInput
{
public function __construct(
public Customer $customer,
public Pagination $pagination,
) {
Assert::notNull($this->customer->id);
}
}