香洲二院小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mini_xzey/app/Dictionary/Patient/HealthCardStatus.php

27 lines
398 B

<?php
declare(strict_types=1);
namespace App\Dictionary\Patient;
/**
* 健康卡状态
*/
enum HealthCardStatus: int
{
case UNREGISTERED = 0;
case REGISTERED = 1;
/**
* Label string
*/
public function label(): string
{
return match ($this) {
self::UNREGISTERED => '已注册',
self::REGISTERED => '未注册',
};
}
}