<?php

declare(strict_types=1);

namespace App\Module\Absence\Domain\Repository;

use App\Module\Absence\Domain\Entity\AbsencePolicy;
use App\Module\Absence\Domain\Enum\AbsenceType;

interface AbsencePolicyRepositoryInterface
{
    public function findById(int $id): ?AbsencePolicy;

    /**
     * @param array<string, mixed>       $criteria
     * @param null|array<string, string> $orderBy
     *
     * @return AbsencePolicy[]
     */
    public function findBy(array $criteria, ?array $orderBy = null, ?int $limit = null, ?int $offset = null): array;

    public function findOneByType(AbsenceType $type): ?AbsencePolicy;
}
