ldc-boutique-cnc-sable/app/Queries/Orders/GetFoCustomerPaginatedOrdersQueryInput.php

21 lines
436 B
PHP
Raw Permalink Normal View History

<?php
declare(strict_types=1);
namespace App\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);
}
}