← Code-Übersicht

Abweichung.php

Pfad: src/Domain/Abgleich/Abweichung.php

Ext: php

Größe: 795 Bytes

Geändert: 2026-07-16 00:33:41+02

<?php
declare(strict_types=1);

namespace Demo\Domain\Abgleich;

/**
 * Befund eines Katalog-Eintrags nach dem Realitaetsabgleich.
 */
final class Abweichung
{
    /** Real vorhanden. */
    public const VORHANDEN = 'vorhanden';

    /** Im Katalog, aber real nicht (mehr) vorhanden. */
    public const FEHLT_REAL = 'fehlt_real';

    /** Nicht automatisch pruefbar (z. B. Schnittstelle). */
    public const NICHT_PRUEFBAR = 'nicht_pruefbar';

    /**
     * @param string $typ        Artefakt-Typ.
     * @param string $bezeichner Kanonischer Bezeichner.
     * @param string $befund     Einer der Konstantenwerte.
     */
    public function __construct(
        public readonly string $typ,
        public readonly string $bezeichner,
        public readonly string $befund
    ) {
    }
}