DocumentRepositoryInterface.php
- Pfad:
src/Domain/Repository/DocumentRepositoryInterface.php - Namespace: Domain\Repository
- Zeilen: 39 | Größe: 958 Bytes
- Geändert: 2025-12-25 02:24:47 | 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.
Klassen 1
-
DocumentRepositoryInterfaceinterface Zeile 9
Funktionen 4
-
getStats()public Zeile 16 -
findAll()public Zeile 23 -
findFiltered()public Zeile 30 -
find()public Zeile 37
Verwendet von 5
- ContentServiceProvider.php use
- DocumentRepository.php implements
- DocumentRepository.php use
- SemanticExplorerController.php constructor
- SemanticExplorerController.php use
Code
<?php
declare(strict_types=1);
namespace Domain\Repository;
// @responsibility: Interface für Document-Persistenz (Dokumente im Semantic Explorer)
interface DocumentRepositoryInterface
{
/**
* Holt Dokument-Statistiken.
*
* @return array{total: int, processed: int, errors: int}
*/
public function getStats(): array;
/**
* Holt alle Dokumente mit Chunk-Count.
*
* @return array<int, array{id: int, filename: string, folder_path: ?string, mime_type: ?string, file_size: int, status: string, imported_at: ?string, processed_at: ?string, chunk_count: int}>
*/
public function findAll(): array;
/**
* Holt gefilterte Dokumente.
*
* @return array<int, array>
*/
public function findFiltered(string $status = '', string $search = ''): array;
/**
* Findet ein Dokument nach ID.
*
* @return array|null
*/
public function find(int $id): ?array;
}