RepositoryFilesGenerated   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Shamaseen\Repository\Events;
4
5
use Illuminate\Foundation\Events\Dispatchable;
6
use Illuminate\Queue\SerializesModels;
7
8
class RepositoryFilesGenerated
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\Eve...epositoryFilesGenerated: $collectionClass, $id, $relations, $class, $connection, $keyBy
Loading history...
12
13
    public string $userPath;
14
    public string $basePath;
15
    public string $modelName;
16
17
    /**
18
     * Create a new event instance.
19
     *
20
     * @return void
21
     */
22
    public function __construct(string $basePath, string $userPath, string $modelName)
23
    {
24
        $this->basePath = $basePath;
25
        $this->userPath = $userPath;
26
        $this->modelName = $modelName;
27
    }
28
}
29