ChunkProcessorInterface.php

Code Hygiene Score: 100

Keine Issues gefunden.

Klassen 1

Funktionen 3

Verwendet von 1

Code

<?php

declare(strict_types=1);

namespace Infrastructure\Docs;

// @responsibility: Interface für Chunk-Verarbeitungsservices

interface ChunkProcessorInterface
{
    /**
     * Processes a single chunk.
     *
     * @return array<string, mixed>
     */
    public function process(int $chunkId): array;

    /**
     * Processes multiple chunks in batch.
     *
     * @return array{processed: int, failed: int, errors: array<string>}
     */
    public function processBatch(int $limit): array;

    /**
     * Gets processing statistics.
     *
     * @return array<string, mixed>
     */
    public function getStats(): array;
}
← Übersicht Graph