TrackedChannelFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 11
c 0
b 0
f 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A definition() 0 7 1
1
<?php
2
3
namespace NotificationTracker\Database\Factories;
4
5
use Carbon\Carbon;
6
use Illuminate\Database\Eloquent\Factories\Factory;
7
use NotificationTracker\Models\TrackedChannel;
8
use NotificationTracker\Models\TrackedNotification;
9
10
class TrackedChannelFactory extends Factory
11
{
12
    protected $model = TrackedChannel::class;
13
14
    public function definition(): array
15
    {
16
        return [
17
            'notification_id' => TrackedNotification::factory(),
18
            'channel'         => 'mail',
19
            'route'           => serialize('[email protected]'),
20
            'sent_at'         => Carbon::now()->subDay(),
21
        ];
22
    }
23
}
24