app\models\Beatmap::modeInt PHP 메소드

modeInt() 공개 정적인 메소드

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

Usage Example

예제 #1
0
파일: User.php 프로젝트: ppy/osu-web
 public function setPlaymodeAttribute($value)
 {
     $this->osu_playmode = Beatmap::modeInt($attribute);
 }