ExchangeWasConfirmed   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 17
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
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