<?php

declare(strict_types=1);

namespace App\ApiResource;

use ApiPlatform\Metadata\ApiResource;
use ApiPlatform\Metadata\Get;
use App\State\EmployeeOvertimeContingentProvider;

#[ApiResource(
    operations: [
        new Get(
            uriTemplate: '/employees/{id}/overtime-contingent',
            security: "is_granted('ROLE_ADMIN')",
            provider: EmployeeOvertimeContingentProvider::class
        ),
    ],
    paginationEnabled: false
)]
final class EmployeeOvertimeContingent
{
    public int $year        = 0;
    public int $paidMinutes = 0;
    public int $capHours    = 0;
    public bool $isDriver   = false;
}
