Total Complexity | 6 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class PeriodicSentEntry extends Model |
||
15 | { |
||
16 | use HasFactory; |
||
17 | |||
18 | protected $guarded = []; |
||
19 | |||
20 | protected $casts = [ |
||
21 | 'meta' => \JsonFieldCast\Casts\SimpleJsonField::class, |
||
22 | ]; |
||
23 | |||
24 | 4 | public function getTable(): string |
|
25 | { |
||
26 | 4 | return config('periodic-notice.tables.periodic_sent_entries'); |
|
27 | } |
||
28 | |||
29 | 2 | public function receiver(): MorphTo |
|
30 | { |
||
31 | 2 | return $this->morphTo(); |
|
32 | } |
||
33 | |||
34 | 2 | public function sendable(): MorphTo |
|
35 | { |
||
36 | 2 | return $this->morphTo(); |
|
37 | } |
||
38 | |||
39 | 3 | public function scopeGroup(Builder $query, string|array $group) |
|
46 | } |
||
47 | |||
48 | 1 | public static function factory(...$parameters): PeriodicSentEntryFactory |
|
51 | } |
||
52 | } |
||
53 |