app\models\Beatmap::getScores PHP Method

getScores() private method

private getScores ( $model_path, $mode )
    private function getScores($model_path, $mode)
    {
        $mode = $mode ?? static::modeStr($this->playmode);
        if ($this->mode !== 'osu' && $this->mode !== $mode) {
            throw new \InvalidArgumentException(trans('errors.beatmaps.standard-converts-only'));
        }
        $mode = studly_case($mode);
        return $this->hasMany("{$model_path}\\{$mode}");
    }