create show,store,update and delete for RoadMaintenanceStationController
This commit is contained in:
21
app/Enums/RoadMaintenanceStationTypes.php
Normal file
21
app/Enums/RoadMaintenanceStationTypes.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum RoadMaintenanceStationTypes: int
|
||||
{
|
||||
case DAEMI= 1;
|
||||
case MOVAGHAT = 2;
|
||||
case FASLI = 3;
|
||||
|
||||
public static function name(int $state): string
|
||||
{
|
||||
$mapArray = [
|
||||
1 => "دائمی",
|
||||
2 => "موقت",
|
||||
3 => "فصلی",
|
||||
];
|
||||
|
||||
return $mapArray[$state];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user