app\models\Beatmap::modeInt PHP Method

modeInt() public static method

public static modeInt ( $str )
    public static function modeInt($str)
    {
        return static::MODES[$str] ?? null;
    }

Usage Example

Ejemplo n.º 1
0
Archivo: User.php Proyecto: ppy/osu-web
 public function setPlaymodeAttribute($value)
 {
     $this->osu_playmode = Beatmap::modeInt($attribute);
 }