DokumentExplorerRepositoryInterface.php

Code Hygiene Score: 100

Keine Issues gefunden.

Klassen 1

Funktionen 6

Verwendet von 9

Code

<?php

declare(strict_types=1);

namespace Domain\Repository;

// @responsibility: Interface für Dokument-Explorer-Operationen (Root-Dokumente mit Stats)

interface DokumentExplorerRepositoryInterface
{
    /**
     * Count root documents (depth=0).
     */
    public function countDokumente(): int;

    /**
     * Get root documents with basic stats.
     *
     * @return array<array<string, mixed>>
     */
    public function getDokumenteWithStats(): array;

    /**
     * Get root documents with full stats (including token counts).
     *
     * @return array<array<string, mixed>>
     */
    public function getDokumenteWithFullStats(): array;

    /**
     * Get document by ID with parent info.
     *
     * @return array<string, mixed>|null
     */
    public function getDokument(int $id): ?array;

    /**
     * Get root document by ID.
     *
     * @return array<string, mixed>|null
     */
    public function getDokumentRoot(int $id): ?array;

    /**
     * Get documents for filter dropdown (id, title only).
     *
     * @return array<array<string, mixed>>
     */
    public function getDokumenteForFilter(): array;
}
← Übersicht Graph