Merge pull request #78 from witelgroup/feature/CreateEnumHarim

change name enum
This commit is contained in:
Amir Ghasempoor
2025-10-22 15:19:09 +03:30
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ enum HarimPosition : string
case FASELEH_AZ_MARKAZ_OSTAN_10_KM = 'به فاصله 10 کیلومتری از مراکز استان ها';
case FASELEH_AZ_MARKAZ_SHAHR_5_KM = 'به فاصله 5 کیلومتری از سایر شهر ها';
public function value(): float
public function amount(): float
{
return match ($this) {
self::FASELEH_AZ_MARKAZ_OSTAN_10_KM => 1.0,

View File

@@ -8,7 +8,7 @@ enum HarimRoadType : string
case ASLI_VA_BOZORGRAH = 'اصلی و بزرگراه';
case AZADRAH = 'آزادراه';
public function value(): float
public function amount(): float
{
return match ($this) {
self::FARE_VA_RAH_AHAN => 1.0,

View File

@@ -10,7 +10,7 @@ enum HarimTerafic : string
public function value(): float
public function amount(): float
{
return match ($this) {
self::SABOK => 1.0,