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/TicketQueueQuery.php

16 lines
355 B
PHP

<?php
namespace App\Services\Ticket;
final readonly class TicketQueueQuery
{
public function __construct(
public int $page = 1,
public int $perPage = 15
) {
if ($this->page < 1 || $this->perPage < 1 || $this->perPage > 100) {
throw new \InvalidArgumentException('工单分页参数无效');
}
}
}