1<?php
2
3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
4// See the LICENCE file in the repository root for full licence text.
5
6namespace App\Models;
7
8/**
9 * @property int $rank_id
10 * @property string $rank_image
11 * @property int $rank_min
12 * @property int $rank_special
13 * @property string $rank_title
14 * @property string|null $url
15 */
16class Rank extends Model
17{
18 protected $table = 'phpbb_ranks';
19 protected $primaryKey = 'rank_id';
20 public $timestamps = false;
21
22 public function getRankTitleAttribute($value)
23 {
24 return presence($value);
25 }
26}