add zone to mission
This commit is contained in:
21
app/Enums/MissionZones.php
Normal file
21
app/Enums/MissionZones.php
Normal 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];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user