<?php

declare(strict_types=1);

namespace App\ApiResource;

use ApiPlatform\Metadata\ApiResource;
use ApiPlatform\Metadata\Post;
use App\State\WorkHourBulkSiteValidationProcessor;

#[ApiResource(
    operations: [
        new Post(
            uriTemplate: '/work-hours/site-bulk-validation',
            security: "is_granted('ROLE_USER')",
            output: WorkHourBulkValidationResult::class,
            processor: WorkHourBulkSiteValidationProcessor::class
        ),
    ]
)]
final class WorkHourBulkSiteValidation
{
    public string $workDate = '';

    public bool $isSiteValid = false;

    /**
     * @var list<int>
     */
    public array $employeeIds = [];
}
