DocumentRepositoryInterface.php

Code Hygiene Score: 100

Keine Issues gefunden.

Klassen 1

Funktionen 4

Verwendet von 5

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;
}
← Übersicht Graph