use enum for saving
This commit is contained in:
@@ -8,9 +8,7 @@ enum SafetyAndPrivacySteps: int
|
||||
case MOSTANADAT_GAZAEI = 2;
|
||||
case BARKHORD = 3;
|
||||
|
||||
|
||||
|
||||
public static function name(int $state): string
|
||||
public static function name(int $step): string
|
||||
{
|
||||
$mapArray = [
|
||||
1 => 'گام اول (شناسایی)',
|
||||
@@ -18,6 +16,6 @@ enum SafetyAndPrivacySteps: int
|
||||
3 => 'گام سوم (برخورد)',
|
||||
];
|
||||
|
||||
return $mapArray[$state];
|
||||
return $mapArray[$step];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user