BrokerPushMatchRecordStatusEnum.php
429 Bytes
<?php
namespace App\Enums;
enum BrokerPushMatchRecordStatusEnum: int
{
case FAIL = -1;
case PROCESSING = 0;
case SUCCESS = 1;
case ROLLBACK = 2;
public function label(): string
{
return match ($this) {
self::PROCESSING => '发送中',
self::SUCCESS => '已发送',
self::FAIL => '发送失败',
self::ROLLBACK => '已撤销',
};
}
}