You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
virt/web/app/Services/Ticket/TicketReadCommand.php

14 lines
264 B
PHTML

<?php
namespace App\Services\Ticket;
final readonly class TicketReadCommand
{
public function __construct(public int $ticketId)
{
if ($this->ticketId < 1) {
throw new \InvalidArgumentException('工单编号无效');
}
}
}