Passed
Push — dev6 ( 6ea9a3...2cfb0e )
by Ron
15:41
created

CustomerEquipmentUpdatedEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
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 16
rs 10

1 Method

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