feat: add RETAIL case to ProductStockQuality enum and update label method
This commit is contained in:
parent
d10f731839
commit
28f7ea0006
@ -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',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user