FileBackupRepositoryInterface.php

Code Hygiene Score: 100

Keine Issues gefunden.

Klassen 1

Funktionen 7

Verwendet von 7

Code

<?php

declare(strict_types=1);

namespace Domain\Repository;

// @responsibility: Contract für Datei-Backup-Persistenz

interface FileBackupRepositoryInterface
{
    /**
     * @param array<string, mixed> $filters
     * @return array<array<string, mixed>>
     */
    public function findAll(array $filters = [], int $limit = 50, int $offset = 0): array;

    /**
     * @param array<string, mixed> $filters
     */
    public function count(array $filters = []): int;

    /**
     * @return array<string, mixed>|null
     */
    public function findById(int $id): ?array;

    /**
     * @return array<array<string, mixed>>
     */
    public function findByFilePath(string $path): array;

    /**
     * @return array<string, int>
     */
    public function getStatistics(): array;

    /**
     * @throws \RuntimeException If restore fails
     */
    public function restore(int $id): bool;

    public function getContentPreview(int $id, int $maxLines = 500): ?string;
}
← Übersicht Graph