Passed
Push — dev6 ( d7b093...318218 )
by Ron
15:35
created

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