Passed
Pull Request — main (#4)
by
unknown
04:02
created

BatchCompletedEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Padosoft\SuperCacheInvalidate\Events;
4
5
class BatchCompletedEvent
6
{
7
    use \Illuminate\Foundation\Events\Dispatchable, \Illuminate\Queue\SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by Padosoft\SuperCacheInval...nts\BatchCompletedEvent: $collectionClass, $id, $relations, $class, $connection, $keyBy
Loading history...
8
9
    public string $batch_ID;
10
    public int $shard;
11
12
    public function __construct(string $batch_ID, int $shard)
13
    {
14
        $this->batch_ID = $batch_ID;
15
        $this->shard = $shard;
16
    }
17
}
18