feat: accommodation booking type and status as dedicated properties
This commit is contained in:
@@ -5,16 +5,16 @@ namespace App\Enum\Groups;
|
||||
enum AccommodationBookingStatus: string
|
||||
{
|
||||
case Draft = 'draft';
|
||||
case Inquiry = 'inquiry';
|
||||
case Booking = 'booking';
|
||||
case Open = 'open';
|
||||
case Accepted = 'accepted';
|
||||
case Discarded = 'discarded';
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::Draft => 'Entwurf',
|
||||
self::Inquiry => 'Anfrage',
|
||||
self::Booking => 'Buchung',
|
||||
self::Open => 'Offen',
|
||||
self::Accepted => 'Bestätigt',
|
||||
self::Discarded => 'Absage',
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user