CommentFactory::definition()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 10
c 1
b 1
f 0
1
<?php
2
3
namespace BiiiiiigMonster\Hasin\Database\Factories;
4
5
use BiiiiiigMonster\Hasin\Tests\Models\Comment;
6
use Illuminate\Database\Eloquent\Factories\Factory;
7
8
class CommentFactory extends Factory
9
{
10
    protected $model = Comment::class;
11
12
    /**
13
     * Define the model's default state.
14
     *
15
     * @return array
16
     */
17
    public function definition()
18
    {
19
        return [
20
            'content' => $this->faker->sentence,
21
            'status' => $this->faker->numberBetween(0, 9),
22
        ];
23
    }
24
}
25