public static function modeInt($str) { return static::MODES[$str] ?? null; }
public function setPlaymodeAttribute($value) { $this->osu_playmode = Beatmap::modeInt($attribute); }