<?php

declare(strict_types=1);

namespace App\Repository\Contract;

use App\Entity\Employee;
use App\Entity\Formation;
use DateTimeImmutable;

interface FormationReadRepositoryInterface
{
    /**
     * @param list<Employee> $employees
     *
     * @return list<Formation>
     */
    public function findByDateAndEmployees(DateTimeImmutable $date, array $employees): array;

    /**
     * @param list<Employee> $employees
     *
     * @return list<Formation>
     */
    public function findByDateRangeAndEmployees(DateTimeImmutable $from, DateTimeImmutable $to, array $employees): array;
}
