RepositoryFilesGenerated::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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