Passed
Push — master ( 0ed9c0...1d4031 )
by mahdi
02:04
created

InvoicePurchasedEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Shetabit\Payment\Events;
4
5
use Illuminate\Broadcasting\Channel;
6
use Illuminate\Queue\SerializesModels;
7
use Illuminate\Broadcasting\PrivateChannel;
8
use Illuminate\Broadcasting\PresenceChannel;
9
use Illuminate\Foundation\Events\Dispatchable;
10
use Illuminate\Broadcasting\InteractsWithSockets;
11
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
12
use Shetabit\Payment\Contracts\DriverInterface;
13
use Shetabit\Payment\Invoice;
14
15
class InvoicePurchasedEvent
16
{
17
    use Dispatchable, InteractsWithSockets, SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by Shetabit\Payment\Events\InvoicePurchasedEvent: $id, $class, $connection, $relations
Loading history...
18
19
    public $driver;
20
    public $invoice;
21
22
    /**
23
     * InvoicePurchasedEvent constructor.
24
     *
25
     * @param DriverInterface $driver
26
     * @param Invoice $invoice
27
     */
28
    public function __construct(DriverInterface $driver, Invoice $invoice)
29
    {
30
        $this->driver = $driver;
31
        $this->invoice = $invoice;
32
    }
33
}
34