create daily accident cartable

This commit is contained in:
2025-10-28 12:02:08 +03:30
parent e34c8ea8ae
commit ff6aad02cd
5 changed files with 633 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Enums;
enum AccidentWayGeoTypes: int
{
public static function name(int $state): string
{
$mapArray = [
1 => "تقاطع - دسترسی",
2 => "قوس افقی یا قائم",
3 => "پل",
4 => "پل و قوس",
5 => "تونل",
6 => "میدان",
7 => "دوربرگردان",
8 => "بریدگی",
9 => "تقاطع و قوس",
10 => "نقطه عادی",
];
return $mapArray[$state];
}
}

View File

@@ -0,0 +1,28 @@
<?php
namespace App\Enums;
enum AccidentWeatherConditions: int
{
case BARFI= 1;
case KOLAK = 2;
case AFTABI = 3;
case BARANI = 4;
case YAKHBANDAN = 5;
case MEH = 6;
public static function name(int $state): string
{
$mapArray = [
1 => 'برفی',
2 => 'کولاک',
3 => 'آفتابی',
4 => 'بارانی',
5 => 'یخبندان',
6 => 'مه آلود',
];
return $mapArray[$state];
}
}