← Code-Übersicht

IngestResult.php

Pfad: src/Application/Rechnung/IngestResult.php

Ext: php

Größe: 697 Bytes

Geändert: 2026-07-16 16:57:10+02

<?php
declare(strict_types=1);

namespace Demo\Application\Rechnung;

/**
 * Zusammenfassung eines Rechnungsimports.
 */
final class IngestResult
{
    /** @param array<string,int|string|float|bool|null> $stats Laufstatistiken. */
    public function __construct(
        public readonly string $runId,
        public readonly string $status,
        public readonly int $discovered,
        public readonly int $processed,
        public readonly int $skipped,
        public readonly int $errors,
        public readonly array $stats = []
    ) {
    }

    /** @return array<string,mixed> JSON-faehige Ergebnisdaten. */
    public function toArray(): array { return get_object_vars($this); }
}

Frühere Versionen

Version Zeitpunkt Operation
16 2026-07-16 19:01:40.811252+02 UPDATE