RepositoryFilesRemoved::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 2
dl 0
loc 4
rs 10
1
<?php
2
3
namespace Shamaseen\Repository\Events;
4
5
use Illuminate\Foundation\Events\Dispatchable;
6
use Illuminate\Queue\SerializesModels;
7
8
class RepositoryFilesRemoved
9
{
10
    use Dispatchable;
11
    use SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by Shamaseen\Repository\Events\RepositoryFilesRemoved: $collectionClass, $id, $relations, $class, $connection, $keyBy
Loading history...
12
13
    public string $path;
14
    public string $modelName;
15
16
    /**
17
     * Create a new event instance.
18
     *
19
     * @return void
20
     */
21
    public function __construct(string $path, string $modelName)
22
    {
23
        $this->path = $path;
24
        $this->modelName = $modelName;
25
    }
26
}
27