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

19 lines
339 B
PHP
Raw Permalink Normal View History

<?php
declare(strict_types=1);
namespace App\Queries\Orders;
use App\Contracts\QueryInput;
use App\Models\Order;
use Webmozart\Assert\Assert;
final readonly class GetBoOrderDetailQueryInput implements QueryInput
{
public function __construct(
public Order $order,
) {
Assert::notNull($this->order->id);
}
}