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
6declare(strict_types=1);
7
8namespace App\Models;
9
10use Illuminate\Database\Eloquent\Collection;
11use Illuminate\Database\Eloquent\Relations\HasMany;
12
13/**
14 * @property int $id
15 * @property string $name
16 * @property string $description
17 * @property-read Collection<BeatmapTag> $beatmapTags
18 */
19class Tag extends Model
20{
21 public function beatmapTags(): HasMany
22 {
23 return $this->hasMany(BeatmapTag::class);
24 }
25}