2026-11-14 16:06:28 +01:00
|
|
|
<?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,
|
2026-11-14 22:12:36 +01:00
|
|
|
public bool $onlyIfMissing = false,
|
2026-11-14 16:06:28 +01:00
|
|
|
) {
|
|
|
|
|
Assert::greaterThanEq($this->year, 2026);
|
|
|
|
|
}
|
|
|
|
|
}
|