<?php

namespace Kylin\Catering\Enums;

/**
 * 订单类型
 */
enum OrderType: string
{
    case DineIn = 'dine_in';       // 堂食
    case Takeout = 'takeout';      // 外卖
    case Pack = 'pack';            // 打包

    public function label(): string
    {
        return match ($this) {
            self::DineIn => '堂食',
            self::Takeout => '外卖',
            self::Pack => '打包',
        };
    }
}
