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.
27 lines
398 B
27 lines
398 B
3 weeks ago
|
<?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 => '未注册',
|
||
|
};
|
||
|
}
|
||
|
}
|