create new option for mission

This commit is contained in:
2025-07-12 16:10:14 +03:30
parent 85c74b2ec6
commit 87f32ef948
6 changed files with 73 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace App\Enums;
enum CategoryTypeMission: int
{
case FALETE_ROZANEH= 0;
case GASHTEH_RAHDARY = 1;
case VAKONESH_SARE = 2;
public static function name(int $state): string
{
$mapArray = [
0 => "فعالیت روزانه",
1 => "گشت راهداری",
2 => "واکنش سریع",
];
return $mapArray[$state];
}
}