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

CustomerIdChangedEvent::__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\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