initial
This commit is contained in:
23
app/Enums/JourneyMethod.php
Normal file
23
app/Enums/JourneyMethod.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum JourneyMethod: string
|
||||
{
|
||||
case Air = 'Air';
|
||||
case Bus = 'Bus';
|
||||
case PersonalVehicle = 'PersonalVehicle';
|
||||
case RcswaVehicle = 'RcswaVehicle';
|
||||
case Train = 'Train';
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match($this) {
|
||||
self::Air => 'Air',
|
||||
self::Bus => 'Bus',
|
||||
self::PersonalVehicle => 'Personal Vehicle',
|
||||
self::RcswaVehicle => 'RCSWA Vehicle',
|
||||
self::Train => 'Train',
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user