<?php

namespace Kylin\Logistics\Enums;

/**
 * 货物状态枚举
 */
enum CargoStatus: string
{
    case INTACT = 'intact';
    case DAMAGED = 'damaged';
    case SHORTAGE = 'shortage';
    case OTHER = 'other';

    public function label(): string
    {
        return match ($this) {
            self::INTACT => '完好',
            self::DAMAGED => '破损',
            self::SHORTAGE => '短缺',
            self::OTHER => '其他',
        };
    }
}
