香洲二院小程序
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/Order/PayMode.php

27 lines
360 B

<?php
declare(strict_types=1);
namespace App\Dictionary\Order;
/**
* 支付模式
*/
enum PayMode: int
{
case PAYMENT = 1;
case REFUND = 2;
/**
* Label string
*/
public function label(): string
{
return match ($this) {
self::PAYMENT => '支付',
self::REFUND => '退费',
};
}
}