Issues (2)

src/Events/InvoicePurchasedEvent.php (1 issue)

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