'veranlasst', self::Observed => 'im Portal gesehen', self::Confirmed => 'Wirksamkeit bestätigt', }; } public function getColor(): string { return match ($this) { self::Initiated => 'warning', self::Observed => 'info', self::Confirmed => 'success', }; } /** * The choice the landlord reads when completing a task. */ public function question(bool $block = true): string { $what = $block ? 'gesperrt' : 'freigegeben'; return match ($this) { self::Initiated => "Ich habe den Zeitraum im Portal {$what}.", self::Observed => "… und im Kalender des Portals gesehen, dass er {$what} ist.", self::Confirmed => 'Das Portal hat es bestätigt (z. B. Bestätigung oder Testanfrage abgelehnt).', }; } }