<?php

declare(strict_types=1);

namespace App\ApiResource;

use ApiPlatform\Metadata\ApiResource;
use ApiPlatform\Metadata\Get;
use App\State\PublicHolidayProvider;
use App\State\PublicHolidayYearProvider;

#[ApiResource(
    operations: [
        new Get(
            uriTemplate: '/public-holidays/{zone}',
            provider: PublicHolidayProvider::class
        ),
        new Get(
            uriTemplate: '/public-holidays/{zone}/{years}',
            provider: PublicHolidayYearProvider::class
        ),
    ],
)]
final class PublicHoliday
{
    public function __construct(
        public array $days = []
    ) {}
}
