*/ public static function labels(): array { return [ self::Pending => '待确认', self::Active => '已入库', self::Rejected => '已驳回', ]; } public static function label(?string $status): string { if (! $status) { return '—'; } return self::labels()[$status] ?? $status; } /** * @return list */ public static function linkable(): array { return [self::Active, self::Pending]; } }