AdConfigurationFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 7
c 1
b 0
f 0
dl 0
loc 11
ccs 0
cts 6
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A definition() 0 7 1
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