Passed
Push — dev6 ( 72e99e...1f4a51 )
by Ron
18:35
created

CustomerNoteForceDeletedEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace App\Events\Customers\Notes;
4
5
use Illuminate\Queue\SerializesModels;
6
use Illuminate\Foundation\Events\Dispatchable;
7
use Illuminate\Broadcasting\InteractsWithSockets;
8
9
use App\Models\Customer;
10
use App\Models\CustomerNote;
11
12
class CustomerNoteForceDeletedEvent
13
{
14
    use Dispatchable;
15
    use SerializesModels;
1 ignored issue
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Events\Customers\Not...erNoteForceDeletedEvent: $id, $relations, $class, $connection, $keyBy
Loading history...
16
    use InteractsWithSockets;
17
18
    public $cust;
19
    public $note;
20
21
    /**
22
     * Create a new event instance.
23
     *
24
     * @return void
25
     */
26
    public function __construct(Customer $cust, CustomerNote $note)
27
    {
28
        $this->cust = $cust;
29
        $this->note = $note;
30
    }
31
}
32