'循环', self::ONCE => '单次', }; } // 设置标签颜色 public function color(): string { return match ($this) { self::CYCLE => '#2196F3', self::ONCE => '#4CAF50', }; } }