Added functionality to upsert pickup exceptions for public holidays and query for auto-updated exceptions. This includes new classes for handling input and service integration with the public holidays API.
17 lines
356 B
PHP
17 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);
|
|
}
|
|
}
|