ldc-cocotte/app/Cqs/Queries/PickupExceptions/HasAutoUpdatedPickupExceptionsForYearQueryInput.php

18 lines
356 B
PHP
Raw Permalink Normal View History

<?php
declare(strict_types=1);
namespace App\Cqs\Queries\PickupExceptions;
use App\Contracts\QueryInput;
use Webmozart\Assert\Assert;
final readonly class HasAutoUpdatedPickupExceptionsForYearQueryInput implements QueryInput
{
public function __construct(
public int $year,
) {
Assert::greaterThanEq($this->year, 2026);
}
}