improve last code
This commit is contained in:
@@ -2,18 +2,16 @@
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum ActivityMachineType: int
|
||||
enum MissionViolationType: int
|
||||
{
|
||||
case KHOROJ_BEDONE_MOGAVEZ = 1;
|
||||
case ADAM_TAHAROK = 2;
|
||||
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::KHOROJ_BEDONE_MOGAVEZ => "خروج بدون مجوز ",
|
||||
self::ADAM_TAHAROK => "عدم تحرک",
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user