// +---------------------------------------------------------------------- declare (strict_types=1); namespace app\common\enum\goods; use app\common\enum\EnumBasics; /** * 枚举类:商品类型 * Class GoodsType * @package app\common\enum\goods */ class GoodsDeliveryTime extends EnumBasics { // 实物商品 const ZERO = 0; const ONE = 1; const TWO = 2; const THREE = 3; const FOUR = 4; const FIVE = 4; const SIX = 5; /** * 获取枚举数据 * @return array */ public static function data(): array { return [ self::ZERO => [ 'name' => '24小时', 'value' => self::ZERO, ], self::ONE => [ 'name' => '48小时', 'value' => self::ONE, ], self::TWO => [ 'name' => '72小时', 'value' => self::TWO, ], self::THREE => [ 'name' => '7天内', 'value' => self::THREE, ], self::FOUR => [ 'name' => '15天内', 'value' => self::FOUR, ], self::FIVE => [ 'name' => '30天内', 'value' => self::FIVE, ], self::SIX => [ 'name' => '45天内', 'value' => self::SIX, ] ]; } }