Total Complexity | 2 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
8 | final class CommentFactory extends ModelFactory |
||
9 | { |
||
10 | protected function getDefaults(): array |
||
11 | { |
||
12 | return [ |
||
13 | 'user' => UserFactory::new(), |
||
14 | 'body' => self::faker()->sentence(), |
||
15 | 'created_at' => self::faker()->dateTime(), |
||
16 | 'post' => PostFactory::new(), |
||
17 | ]; |
||
18 | } |
||
19 | |||
20 | protected static function getClass(): string |
||
23 | } |
||
24 | } |
||
25 |