<?php

namespace App\Enums;

use App\Traits\ProvidesEnumOptions;

enum ProductStockQuality: string
{
    use ProvidesEnumOptions;

    case GOOD = 'good';
    case REJECT = 'reject';
    case RETAIL = 'retail';

    public function label(): string
    {
        return match ($this) {
            self::GOOD => 'Bagus',
            self::REJECT => 'Reject',
            self::RETAIL => 'Eceran',
        };
    }
}
