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

CustomerNoteRestoredEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
nc 1
nop 2
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 CustomerNoteRestoredEvent
13
{
14
    use Dispatchable, InteractsWithSockets, SerializesModels;
1 ignored issue
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Events\Customers\Not...stomerNoteRestoredEvent: $id, $relations, $class, $connection, $keyBy
Loading history...
15
16
    use Dispatchable;
17
    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...stomerNoteRestoredEvent: $id, $relations, $class, $connection, $keyBy
Loading history...
18
    use InteractsWithSockets;
19
20
    public $cust;
21
    public $note;
22
23
    /**
24
     * Create a new event instance
25
     */
26
    public function __construct(Customer $cust, CustomerNote $note)
27
    {
28
        $this->cust = $cust;
29
        $this->note = $note;
30
    }
31
}
32