Files
backend/app/Enums/ActivityMachineType.php

21 lines
573 B
PHP
Raw 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 ActivityMachineType: int
{
case MOTABEGAT = 1;
case TEDADE_MACHINES_BISHTAR_AS_MISSION = 2;
case TEDADE_MISSIONS_BISHTAR_AS_MACHINES = 3;
public function label(): string
{
return match ($this) {
self::MOTABEGAT => "مطابقت ",
self::TEDADE_MACHINES_BISHTAR_AS_MISSION => " تعداد ماشین ها بیشتر از ماموریت ها",
self::TEDADE_MISSIONS_BISHTAR_AS_MACHINES => "تغداد ماموریت ها بیشتر از ماشین ها ",
};
}
}