Passed
Push — main ( 371ba8...361489 )
by
unknown
03:26 queued 16s
created

BatchCompletedEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 4
rs 10
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