feat: add RETAIL case to ProductStockQuality enum and update label method

This commit is contained in:
Yoga Pangestu 2026-08-07 13:02:07 +07:00
parent d10f731839
commit 28f7ea0006

View File

@ -10,12 +10,14 @@ enum ProductStockQuality: string
case GOOD = 'good'; case GOOD = 'good';
case REJECT = 'reject'; case REJECT = 'reject';
case RETAIL = 'retail';
public function label(): string public function label(): string
{ {
return match ($this) { return match ($this) {
self::GOOD => 'Bagus', self::GOOD => 'Bagus',
self::REJECT => 'Reject', self::REJECT => 'Reject',
self::RETAIL => 'Ecer',
}; };
} }
} }