Passed
Push — master ( bd13ba...272332 )
by Sander
04:42 queued 02:26
created

GdprInactiveUserDeleted   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Soved\Laravel\Gdpr\Events;
4
5
use App\User;
0 ignored issues
show
Bug introduced by
The type App\User was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use Illuminate\Queue\SerializesModels;
7
8
class GdprInactiveUserDeleted
9
{
10
    use SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by Soved\Laravel\Gdpr\Events\GdprInactiveUserDeleted: $id, $class, $connection, $relations
Loading history...
11
12
    /**
13
     * @var \App\User
14
     */
15
    public $user;
16
17
    /**
18
     * Create a new event instance.
19
     *
20
     * @param  \App\User  $user
21
     * @return void
22
     */
23
    public function __construct(User $user)
24
    {
25
        $this->user = $user;
26
    }
27
}
28