<?php

declare(strict_types=1);

namespace Kylin\Manufacturing\Enums;

/**
 * 检验类型
 */
enum InspectionType: string
{
    case Incoming = 'incoming';
    case InProcess = 'in_process';
    case Final = 'final';

    public function label(): string
    {
        return match ($this) {
            self::Incoming => '来料检验',
            self::InProcess => '过程检验',
            self::Final => '成品检验',
        };
    }
}
