ldc-cocotte/app/Cqs/Actions/PickupExceptions/UpsertShopsPickupExceptionsUsingApiForYearInput.php

18 lines
358 B
PHP
Raw Normal View History

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