refactor(enums): reorganize namespaces and update flight/tour/user imports

This commit is contained in:
2026-08-20 13:01:03 +03:30
parent a45dc7b0fb
commit 8d0cd16384
20 changed files with 237 additions and 181 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php
namespace App\Enums\Tour;
enum TourMode:int
{
case AIR = 0;
case LAND = 1;
public function label(): string
{
return match ($this) {
self::AIR => 'زمینی',
self::LAND => 'هوایی',
};
}
}
+17
View File
@@ -0,0 +1,17 @@
<?php
namespace App\Enums\Tour;
enum TourScope:int
{
case DOMESTIC = 0;
case INTERNATIONAL = 1;
public function label(): string
{
return match ($this) {
self::DOMESTIC => 'داخلی',
self::INTERNATIONAL => 'خارجی',
};
}
}