Files
database-pertani-web/app/Enums/Koperasi/TingkatKreditMacetKoperasi.php
T
2026-11-06 22:38:45 +07:00

24 lines
684 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\Koperasi;
enum TingkatKreditMacetKoperasi: string
{
case DI_BAWAH_SEPULUH = '<10%';
case SEPULUH_DUA_PULUH_LIMA = '10-25%';
case DUA_PULUH_LIMA_LIMA_PULUH = '25-50%';
case LIMA_PULUH_TUJUH_PULUH_LIMA = '50-75%';
case DI_ATAS_TUJUH_PULUH_LIMA = '>75%';
public function label(): string
{
return match ($this) {
self::DI_BAWAH_SEPULUH => 'Di bawah 10%',
self::SEPULUH_DUA_PULUH_LIMA => '10–25%',
self::DUA_PULUH_LIMA_LIMA_PULUH => '25–50%',
self::LIMA_PULUH_TUJUH_PULUH_LIMA => '50–75%',
self::DI_ATAS_TUJUH_PULUH_LIMA => 'Di atas 75%',
};
}
}