28 lines
523 B
PHP
28 lines
523 B
PHP
<?php
|
|
|
|
namespace App\Services;
|
|
|
|
class MnemonicScanStatus
|
|
{
|
|
public const PENDING = 0;
|
|
|
|
public const EMPTY = 1;
|
|
|
|
public const SUSPECTED = 2;
|
|
|
|
public const CONFIRMED = 3;
|
|
|
|
public const FAILED = 4;
|
|
|
|
public static function label(int $status): string
|
|
{
|
|
return match ($status) {
|
|
self::EMPTY => '已扫',
|
|
self::SUSPECTED => '疑似',
|
|
self::CONFIRMED => '确定含有',
|
|
self::FAILED => '失败',
|
|
default => '未扫',
|
|
};
|
|
}
|
|
}
|