<?php

declare(strict_types=1);

namespace App\ApiResource;

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

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

    public bool $isValid = false;

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