23 lines
543 B
PHP
23 lines
543 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Repository\Contract;
|
|
|
|
use App\Entity\Employee;
|
|
use App\Entity\WorkHour;
|
|
use DateTimeImmutable;
|
|
use DateTimeInterface;
|
|
|
|
interface WorkHourReadRepositoryInterface
|
|
{
|
|
/**
|
|
* @param list<Employee> $employees
|
|
*
|
|
* @return list<WorkHour>
|
|
*/
|
|
public function findByDateRangeAndEmployees(DateTimeImmutable $from, DateTimeImmutable $to, array $employees): array;
|
|
|
|
public function hasValidatedInRange(Employee $employee, DateTimeInterface $from, DateTimeInterface $to): bool;
|
|
}
|