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

NewCustomerCreated::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 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 NewCustomerCreated
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\NewCustomerCreated: $id, $relations, $class, $connection, $keyBy
Loading history...
15
    use InteractsWithSockets;
16
17
    public $customer;
18
19
    /**
20
     * Create a new event instance
21
     */
22
    public function __construct(Customer $customer)
23
    {
24
        $this->customer = $customer;
25
    }
26
}
27