Files
fewo-stommer/app/Enums/BookingNoticeMode.php
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

33 lines
1.0 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\Enums;
use Filament\Support\Contracts\HasLabel;
/**
* Whether the guest of a binding booking gets a short booking information (without contract) from us (docs/
* Prozessarchitektur/V2.1/02 §4) – independent of the contract documentation, which stays with its own step.
*/
enum BookingNoticeMode: string implements HasLabel
{
case Off = 'off';
case Automatic = 'automatic';
case AutomaticUnlessPortalConfirmed = 'automatic_unless_portal_confirmed';
case Manual = 'manual';
public function getLabel(): string
{
return match ($this) {
self::Off => 'keine eigene Buchungsinformation',
self::Automatic => 'automatisch senden',
self::AutomaticUnlessPortalConfirmed => 'automatisch senden – außer das Portal hat nachweislich bestätigt',
self::Manual => 'von Hand senden',
};
}
public function isAutomatic(): bool
{
return in_array($this, [self::Automatic, self::AutomaticUnlessPortalConfirmed], true);
}
}