Passed
Push — dev6 ( 98cfbc...9c7079 )
by Ron
19:23
created

CustomerContactUpdatedEvent   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\Customers;
4
5
use App\Models\Customer;
6
use App\Models\CustomerContact;
7
use Illuminate\Broadcasting\Channel;
8
use Illuminate\Broadcasting\InteractsWithSockets;
9
use Illuminate\Broadcasting\PresenceChannel;
10
use Illuminate\Broadcasting\PrivateChannel;
11
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
12
use Illuminate\Foundation\Events\Dispatchable;
13
use Illuminate\Queue\SerializesModels;
14
15
class CustomerContactUpdatedEvent
16
{
17
    use Dispatchable;
18
    use SerializesModels;
1 ignored issue
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Events\Customers\CustomerContactUpdatedEvent: $id, $relations, $class, $connection, $keyBy
Loading history...
19
    use InteractsWithSockets;
20
21
    public $cust;
22
    public $cont;
23
24
    /**
25
     * Create a new event instance
26
     */
27
    public function __construct(Customer $cust, CustomerContact $cont)
28
    {
29
        $this->cust = $cust;
30
        $this->cont = $cont;
31
    }
32
}
33