AdConfigurationFactory::definition()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 7
ccs 0
cts 6
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace NovaAdDirector\Factories;
4
5
use Illuminate\Database\Eloquent\Factories\Factory;
6
use NovaAdDirector\Models\AdConfiguration;
7
8
/**
9
 * @extends Factory<AdConfiguration>
10
 */
11
class AdConfigurationFactory extends Factory
12
{
13
    protected $model = AdConfiguration::class;
14
15
    public function definition()
16
    {
17
        return [
18
            'key'           => $this->faker->unique()->word(),
19
            'location'      => $this->faker->unique()->word(),
20
            'status'        => 'active',
21
            'configuration' => null,
22
        ];
23
    }
24
}
25