debug
This commit is contained in:
19
app/Enums/CmmsMachineStatus.php
Normal file
19
app/Enums/CmmsMachineStatus.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum CmmsMachineStatus: int
|
||||
{
|
||||
case AMADE= 1;
|
||||
case RESERVE = 2;
|
||||
case DAR_MAMORIAT = 3;
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::AMADE => 'آماده',
|
||||
self::RESERVE => 'رزرو',
|
||||
self::DAR_MAMORIAT => 'در ماموریت',
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user