Files
backend/app/Enums/AccidentStates.php

28 lines
754 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace App\Enums;
enum AccidentStates: int
{
case BEDON_EGHDAM= 0;
case SODOR_NAME_BIME_VA_DAGHI = 1;
case SABT_FISH = 2;
case SODOR_FACTOR = 3;
case PARDAKHT_FACTOR = 4;
case SODOR_NAME_POLICE_RAH = 5;
public static function name(int $state): string
{
$mapArray = [
0 => "بدون اقدام",
1 => "صدور نامه بیمه و کارشناسی داغی",
2 => "فیش ها ثبت شده است.",
3 => "فاکتور صادر شده است.",
4 => "فاکتور پرداخت شده است",
5 => "نامه پلیس راه صادر شده است (اتمام فرایند)",
];
return $mapArray[$state];
}
}