19 lines
344 B
PHP
19 lines
344 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace App\Actions\Orders;
|
||
|
|
|
||
|
|
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));
|
||
|
|
}
|
||
|
|
}
|