Passed
Push — master ( a019f6...dfd424 )
by Filippo
01:29 queued 16s
created

ChunksMerged::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
cc 1
eloc 2
c 1
b 1
f 1
nc 1
nop 2
dl 0
loc 4
rs 10
1
<?php
2
3
namespace Jobtech\LaravelChunky\Events;
4
5
use Illuminate\Queue\SerializesModels;
6
use Jobtech\LaravelChunky\Strategies\Contracts\MergeStrategy;
7
8
class ChunksMerged
9
{
10
    use SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by Jobtech\LaravelChunky\Events\ChunksMerged: $id, $relations, $class, $connection, $keyBy
Loading history...
11
12
    /**
13
     * @var \Jobtech\LaravelChunky\Strategies\Contracts\MergeStrategy
14
     */
15
    private $strategy;
16
17
    /**
18
     * @var string
19
     */
20
    private $path;
21
22
    public function __construct(MergeStrategy $strategy, string $path)
23
    {
24
        $this->strategy = $strategy;
25
        $this->path = $path;
26
    }
27
}
28