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

CustomerContactAddedEvent::__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;
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 CustomerContactAddedEvent
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\CustomerContactAddedEvent: $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