Completed
Push — master ( 39f1f0...d5595a )
by Orkhan
03:51
created

PaymentSuccessfulEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Orkhanahmadov\LaravelGoldenpay\Events;
4
5
use Illuminate\Queue\SerializesModels;
6
use Illuminate\Foundation\Events\Dispatchable;
7
use Illuminate\Broadcasting\InteractsWithSockets;
8
use Orkhanahmadov\LaravelGoldenpay\Models\Payment;
9
10
class PaymentSuccessfulEvent
11
{
12
    use Dispatchable;
13
    use InteractsWithSockets;
14
    use SerializesModels;
15
    /**
16
     * @var Payment
17
     */
18
    public $payment;
19
20
    /**
21
     * Create a new event instance.
22
     *
23
     * @param Payment $payment
24
     */
25
    public function __construct(Payment $payment)
26
    {
27
        $this->payment = $payment;
28
    }
29
}
30