TaskCommentRepositoryInterface.php

Code Hygiene Score: 100

Keine Issues gefunden.

Dependencies 1

Klassen 1

Funktionen 5

Verwendet von 5

Code

<?php

declare(strict_types=1);

namespace Domain\Repository;

// @responsibility: Contract für Task-Kommentare-Persistenz

use Domain\Entity\TaskComment;

interface TaskCommentRepositoryInterface
{
    public function find(int $id): ?TaskComment;

    /**
     * @return array<TaskComment>
     */
    public function findByTaskId(int $taskId, int $limit = 50): array;

    /**
     * @return array<TaskComment>
     */
    public function findByType(int $taskId, string $commentType): array;

    public function save(TaskComment $comment): int;

    public function delete(int $id): bool;
}
← Übersicht Graph