<?php

declare(strict_types=1);

namespace App\Module\ProjectManagement\Domain\Repository;

use App\Module\ProjectManagement\Domain\Entity\TaskStatus;

interface TaskStatusRepositoryInterface
{
    public function findById(int $id): ?TaskStatus;

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

    public function findFirstNonFinal(): ?TaskStatus;
}
