Issues (2)

src/Events/InvoiceVerifiedEvent.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\Contracts\ReceiptInterface;
10
use Shetabit\Multipay\Invoice;
11
12
class InvoiceVerifiedEvent
13
{
14
    use Dispatchable, InteractsWithSockets, SerializesModels;
0 ignored issues
show
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by Shetabit\Payment\Events\InvoiceVerifiedEvent: $id, $relations, $class, $connection, $keyBy
Loading history...
15
16
    public $receipt;
17
    public $driver;
18
    public $invoice;
19
20
    /**
21
     * InvoiceVerifiedEvent constructor.
22
     *
23
     * @param ReceiptInterface $receipt
24
     * @param DriverInterface $driver
25
     * @param Invoice $invoice
26
     */
27
    public function __construct(ReceiptInterface $receipt, DriverInterface $driver, Invoice $invoice)
28
    {
29
        $this->receipt = $receipt;
30
        $this->driver = $driver;
31
        $this->invoice = $invoice;
32
    }
33
}
34