add zone to mission

This commit is contained in:
2025-06-11 11:41:43 +03:30
parent b38cf3b74a
commit 81ea9d2f7e
5 changed files with 34 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Enums;
enum MissionZones: int
{
case DAKHEL_SHAHR= 1;
case BIRON_SHAHR_DHAKHEL_MAHDODE = 2;
case BIRON_SHAHR_BIRON_MAHDODE = 3;
public static function name(int $state): string
{
$mapArray = [
1 => 'داخل شهر',
2 => 'بیرون شهر (داخل محدوده)',
3 => 'بیرون شهر (بیرون محدوده)',
];
return $mapArray[$state];
}
}