chenge and debug mission code

This commit is contained in:
2025-06-11 10:30:56 +03:30
parent b3f22d2fdf
commit a861343625
6 changed files with 33 additions and 16 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Enums;
enum MissionTypes: int
{
case SAATY= 1;
case ROZANE = 2;
public static function name(int $state): string
{
$mapArray = [
1 => 'ساعتی',
2 => 'روزانه',
];
return $mapArray[$state];
}
}