From b36406fff802d13e554c0a23c0ef45bdb2cd1a9d Mon Sep 17 00:00:00 2001 From: Marcel Date: Sun, 3 Mar 2024 11:27:43 +0100 Subject: [PATCH] Add more regions --- app/Enums/Region.php | 49 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/app/Enums/Region.php b/app/Enums/Region.php index 3335c3c..5581568 100644 --- a/app/Enums/Region.php +++ b/app/Enums/Region.php @@ -9,12 +9,59 @@ enum Region: string implements HasLabel { case BAVARIA = 'bavaria'; + case BADENWUERTTEMBERG = 'Baden-Württemberg'; + case BERLIN = 'Berlin'; + case BRANDENBURG = 'Brandenburg'; + case BREMEN = 'Bremen'; + case HAMBURG = 'Hamburg'; + case HESSEN = 'Hessen'; + case MECKLENBURGVORPOMMEN = 'Mecklenburg-Vorpommern'; + case NIEDERSACHSEN = 'Niedersachsen'; + case NORDRHEINWESTFALEN = 'Nordrhein-Westfalen'; + case RHEINLANDPFALZ = 'Rheinland-Pfalz'; + case SAARLAND = 'Saarland'; + case SACHSEN = 'Sachsen'; + case SACHSENANHALT = 'Sachsen-Anhalt'; + case SCHLEWSIGHOLSTEIN = 'Schleswig-Holstein'; + case THUERINGEN = 'Thüringen'; + case BURGENLAND = 'Burgenland'; + case KAERNTEN = 'Kärnten'; + case NIEDEROESTERREICH = 'Niederösterreich'; + case OBEROESTERREICH = 'Oberösterreich'; + case SALZBURG = 'Salzburg'; + case STEIERMARK = 'Steiermark'; + case TIROL = 'Tirol'; + case VORARLBERG = 'Vorarlberg'; + case WIEN = 'Wien'; public function getLabel(): ?string { return match ($this) { self::BAVARIA => 'Bayern', - // TODO: Add Regions + self::BADENWUERTTEMBERG => 'Baden-Württemberg', + self::BERLIN => 'Berlin', + self::BRANDENBURG => 'Brandenburg', + self::BREMEN => 'Bremen', + self::HAMBURG => 'Hamburg', + self::HESSEN => 'Hessen', + self::MECKLENBURGVORPOMMEN => 'Mecklenburg-Vorpommern', + self::NIEDERSACHSEN => 'Niedersachsen', + self::NORDRHEINWESTFALEN => 'Nordrhein-Westfalen', + self::RHEINLANDPFALZ => 'Rheinland-Pfalz', + self::SAARLAND => 'Saarland', + self::SACHSEN => 'Sachsen', + self::SACHSENANHALT => 'Sachsen-Anhalt', + self::SCHLEWSIGHOLSTEIN => 'Schleswig-Holstein', + self::THUERINGEN => 'Thüringen', + self::BURGENLAND => 'Burgenland', + self::KAERNTEN => 'Kärnten', + self::NIEDEROESTERREICH => 'Niederösterreich', + self::OBEROESTERREICH => 'Oberösterreich', + self::SALZBURG => 'Salzburg', + self::STEIERMARK => 'Steiermark', + self::TIROL => 'Tirol', + self::VORARLBERG => 'Vorarlberg', + self::WIEN => 'Wien', }; } }