change some code for some thing such as mission accident and enum

This commit is contained in:
2025-08-31 13:52:59 +03:30
parent a3d087ac65
commit f7f1134ce3
3 changed files with 16 additions and 10 deletions

View File

@@ -4,16 +4,18 @@ namespace App\Enums;
enum MissionTypes: int
{
case SAATY= 1;
case ROZANE = 2;
case NO_PROCESS = 3;
case PROCESS_SAATY= 1;
case PROCESS_ROZANE = 2;
case NO_PROCESS_SAATY = 3;
case NO_PROCESS_ROZANE = 4;
public static function name(int $state): string
{
$mapArray = [
1 => 'ساعتی',
2 => 'روزانه',
3 => 'بدون فرآیند',
1 => ' با فرایند (ساعتی)',
2 => 'با فرایند(روزانه)',
3 => 'بدون فرآیند(ساعتی)',
4 => 'بدون فرایند (روزانه)'
];
return $mapArray[$state];