RepositoryFilesRemoved   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
c 0
b 0
f 0
dl 0
loc 17
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
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