feat: add scope/type enums, update Flight model, and organize enums
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums\Flight;
|
||||
|
||||
enum FlightScope:int
|
||||
{
|
||||
case Domestic = 1;
|
||||
case International = 2;
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::Domestic => 'داخلی',
|
||||
self::International => 'خارجی',
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user