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

CustomerDetailsUpdated   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

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