2026-09-30 17:57:20 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2026-11-10 14:28:00 +01:00
|
|
|
namespace App\Cqs\Actions\Orders;
|
2026-09-30 17:57:20 +02:00
|
|
|
|
|
|
|
|
use App\Contracts\ActionInput;
|
|
|
|
|
use App\Models\Order;
|
|
|
|
|
use Webmozart\Assert\Assert;
|
|
|
|
|
|
|
|
|
|
final readonly class CancelOrderInput implements ActionInput
|
|
|
|
|
{
|
|
|
|
|
public function __construct(
|
|
|
|
|
public Order $order,
|
|
|
|
|
) {
|
|
|
|
|
Assert::stringNotEmpty(trim($this->order->id));
|
|
|
|
|
}
|
|
|
|
|
}
|