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 Database\Factories;
9
10use App\Models\UserRelation;
11
12class UserRelationFactory extends Factory
13{
14 protected $model = UserRelation::class;
15
16 public function block(): static
17 {
18 return $this->state(['foe' => true]);
19 }
20
21 public function definition(): array
22 {
23 return [];
24 }
25
26 public function friend(): static
27 {
28 return $this->state(['friend' => true]);
29 }
30}