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\BeatmapDiscussionPost;
11
12class BeatmapDiscussionPostFactory extends Factory
13{
14 protected $model = BeatmapDiscussionPost::class;
15
16 public function definition(): array
17 {
18 return [
19 'message' => fn () => $this->faker->sentence(10),
20 ];
21 }
22
23 public function timeline()
24 {
25 return $this->state([
26 'message' => "00:00.000 {$this->faker->sentence(10)}",
27 ]);
28 }
29}