create 3 enum for harim

This commit is contained in:
2025-10-22 14:58:50 +03:30
parent 9348cafaeb
commit 6dfb6bafd5
3 changed files with 58 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace App\Enums;
enum HarimTerafic : string
{
case SABOK = 'سبک';
case MOTEVASET = 'متوسط';
case SANGIN = 'سنگین';
public function value(): float
{
return match ($this) {
self::SABOK => 1.0,
self::MOTEVASET => 1.5,
self::SANGIN => 2.0,
};
}
}