18 lines
356 B
PHP
18 lines
356 B
PHP
|
|
<?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);
|
||
|
|
}
|
||
|
|
}
|