Completed
Push — master ( d5595a...9bb41e )
by Orkhan
08:19
created

PaymentEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 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
abstract class PaymentEvent
11
{
12
    use Dispatchable;
13
    use InteractsWithSockets;
14
    use SerializesModels;
15
16
    /**
17
     * @var Payment
18
     */
19
    public $payment;
20
21
    /**
22
     * Create a new event instance.
23
     *
24
     * @param Payment $payment
25
     */
26
    public function __construct(Payment $payment)
27
    {
28
        $this->payment = $payment;
29
    }
30
}
31