refactor(enums): reorganize namespaces and update flight/tour/user imports
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums\Flight;
|
||||
|
||||
enum TourType:int
|
||||
{
|
||||
case RECREATIONAL = 0;
|
||||
case TOURISM = 1;
|
||||
case PILGRIMAGE = 2;
|
||||
case ECO_TOURISM = 3;
|
||||
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::RECREATIONAL => 'تفریحی',
|
||||
self::TOURISM => 'گردشگری',
|
||||
self::PILGRIMAGE => 'زیارتی',
|
||||
self::ECO_TOURISM => 'طبیعتگردی'
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user