Passed
Push — dev6 ( 9c7079...72e99e )
by Ron
15:54
created

CustomerLinkedEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
c 0
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 Illuminate\Queue\SerializesModels;
6
use Illuminate\Foundation\Events\Dispatchable;
7
use Illuminate\Broadcasting\InteractsWithSockets;
8
9
class CustomerLinkedEvent
10
{
11
    use Dispatchable;
12
    use SerializesModels;
1 ignored issue
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Events\Customers\CustomerLinkedEvent: $id, $relations, $class, $connection, $keyBy
Loading history...
13
    use InteractsWithSockets;
14
15
    public $added;
16
    public $cust_id;
17
18
    /**
19
     * Create a new event instance
20
     */
21
    public function __construct($cust_id, $added)
22
    {
23
        $this->added   = $added;
24
        $this->cust_id = $cust_id;
25
    }
26
}
27