Files
LarsandClaude Sonnet 5.5 8442d0a3d8 V2.1: Kanalfähigkeiten, Ausführungsvarianten, Dokumentenentkopplung, Portalbestätigung
Modellwahl über Kanalfähigkeiten mit erklärten Einschränkungen, Abgleich alter Werte,
Ausführungsvarianten je Modul, getrennte Vertrags-/Buchungsinformation, Warten auf
die Portalbestätigung mit Eskalation und Wiederaufnahme (Fälle C und D getestet).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 07:54:11 +01:00

42 lines
1.3 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace App\Process;
/**
* One capability of a channel with the value in force and where it comes from (docs/Prozessarchitektur/V2.1/02 §3.1).
*/
final readonly class Capability
{
public const CONFIRMED = 'confirmed';
public const DERIVED = 'derived';
public const SUGGESTED = 'suggested';
public const UNKNOWN = 'unknown';
public function __construct(
public string $key,
public ?bool $value,
public string $source,
public ?string $note = null,
public ?string $confirmedAt = null,
public ?string $confirmedBy = null,
) {}
public function isKnown(): bool
{
return $this->value !== null;
}
public function sourceLabel(): string
{
return match ($this->source) {
self::CONFIRMED => 'bestätigt'.($this->confirmedBy ? ' von '.$this->confirmedBy : '').($this->confirmedAt ? ' am '.substr($this->confirmedAt, 8, 2).'.'.substr($this->confirmedAt, 5, 2).'.'.substr($this->confirmedAt, 0, 4) : ''),
self::DERIVED => 'abgeleitet aus Ihrer bisherigen Einstellung'.($this->note ? ' („'.$this->note.'“)' : '').' – bitte bestätigen oder korrigieren',
self::SUGGESTED => 'Vorschlag des Kanalprofils – bitte bestätigen',
default => 'noch nicht bekannt – bitte bestätigen',
};
}
}