TaskCommentRepositoryInterface.php
- Pfad:
src/Domain/Repository/TaskCommentRepositoryInterface.php - Namespace: Domain\Repository
- Zeilen: 29 | Größe: 595 Bytes
- Geändert: 2025-12-25 12:49:29 | Gescannt: 2025-12-31 10:22:15
Code Hygiene Score: 100
- Dependencies: 100 (25%)
- LOC: 100 (20%)
- Methods: 100 (20%)
- Secrets: 100 (15%)
- Classes: 100 (10%)
- Magic Numbers: 100 (10%)
Keine Issues gefunden.
Dependencies 1
- use Domain\Entity\TaskComment
Klassen 1
-
TaskCommentRepositoryInterfaceinterface Zeile 11
Funktionen 5
-
find()public Zeile 13 -
findByTaskId()public Zeile 18 -
findByType()public Zeile 23 -
save()public Zeile 25 -
delete()public Zeile 27
Verwendet von 5
- DocsController.php constructor
- DocsController.php use
- TaskCommentRepository.php implements
- TaskCommentRepository.php use
- TaskServiceProvider.php use
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;
}