25 lines
661 B
PHP
25 lines
661 B
PHP
<?php
|
|
|
|
namespace App\Enums\Bumdes;
|
|
|
|
enum StatusSortasiBumdes: string
|
|
{
|
|
case RUTIN_STANDAR = 'rutin_standar';
|
|
case TIDAK_KONSISTEN = 'tidak_konsisten';
|
|
case BELUM_PERNAH = 'belum_pernah';
|
|
|
|
public function label(): string
|
|
{
|
|
return match ($this) {
|
|
self::RUTIN_STANDAR => 'Ya, rutin dengan standar tertentu',
|
|
self::TIDAK_KONSISTEN => 'Ya, tapi tidak konsisten',
|
|
self::BELUM_PERNAH => 'Belum pernah dilakukan',
|
|
};
|
|
}
|
|
|
|
public static function options(): array
|
|
{
|
|
return collect(self::cases())->mapWithKeys(fn (self $value) => [$value->value => $value->label()])->all();
|
|
}
|
|
}
|