ExchangeWasConfirmed::__construct()   A
last analyzed

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
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace App\Events;
4
5
use App\Judite\Models\Exchange;
6
use Illuminate\Queue\SerializesModels;
7
use Illuminate\Foundation\Events\Dispatchable;
8
9
class ExchangeWasConfirmed
10
{
11
    use Dispatchable, SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Events\ExchangeWasConfirmed: $id, $class, $connection
Loading history...
12
13
    /**
14
     * The confirmed exchange.
15
     *
16
     * @var \App\Judite\Models\Exchange
17
     */
18
    public $exchange;
19
20
    /**
21
     * Create a new event instance.
22
     */
23
    public function __construct(Exchange $exchange)
24
    {
25
        $this->exchange = $exchange;
26
    }
27
}
28