// +---------------------------------------------------------------------- declare (strict_types=1); namespace app\common\enum\goods; use app\common\enum\EnumBasics; /** * 枚举类:商品采集状态 * Class CollectorStatus * @package app\common\enum\goods */ class CollectorStatus extends EnumBasics { // 进行中 const NORMAL = 10; // 采集完成 const COMPLETED = 20; // 采集失败 const FAIL = 30; /** * 获取枚举类型值 * @return array */ public static function data(): array { return [ self::NORMAL => [ 'name' => '进行中', 'value' => self::NORMAL, ], self::COMPLETED => [ 'name' => '采集完成', 'value' => self::COMPLETED, ], self::FAIL => [ 'name' => '采集失败', 'value' => self::FAIL, ] ]; } }