improve last code

This commit is contained in:
2025-12-02 11:16:23 +03:30
parent dc7dc723c8
commit ad49d77730
3 changed files with 10 additions and 15 deletions

View File

@@ -0,0 +1,17 @@
<?php
namespace App\Enums;
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 => "عدم تحرک",
};
}
}