<?php

namespace App\Enums;

enum WarehouseType: string
{
    case STANDARD = 'standard';     // 標準倉/總倉
    case PRODUCTION = 'production'; // 生產倉/廚房
    case RETAIL = 'retail';         // 門市倉/前台
    case VENDING = 'vending';       // 販賣機倉/IoT
    case TRANSIT = 'transit';       // 在途倉/移動倉
    case QUARANTINE = 'quarantine'; // 瑕疵倉/報廢倉

    public function label(): string
    {
        return match($this) {
            self::STANDARD => '標準倉 (總倉)',
            self::PRODUCTION => '生產倉 (廚房/加工)',
            self::RETAIL => '門市倉 (前台销售)',
            self::VENDING => '販賣機 (IoT設備)',
            self::TRANSIT => '在途倉 (物流車)',
            self::QUARANTINE => '瑕疵倉 (報廢/檢驗)',
        };
    }
}
