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.
|
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Dictionary\Order;
|
|
|
|
/**
|
|
* 回调消息状态
|
|
*/
|
|
enum NotifyStatus: int
|
|
{
|
|
case NO_ACCEPTED = 0;
|
|
|
|
case ACCEPTED = 1;
|
|
|
|
/**
|
|
* Label string
|
|
*/
|
|
public function label(): string
|
|
{
|
|
return match ($this) {
|
|
self::NO_ACCEPTED => '未接收',
|
|
self::ACCEPTED => '已接收'
|
|
|
|
};
|
|
}
|
|
}
|
|
|