PaymentEvent   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 2
b 0
f 0
dl 0
loc 18
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Orkhanahmadov\LaravelGoldenpay\Events;
4
5
use Illuminate\Foundation\Events\Dispatchable;
6
use Illuminate\Queue\SerializesModels;
7
use Orkhanahmadov\LaravelGoldenpay\Models\Payment;
8
9
abstract class PaymentEvent
10
{
11
    use Dispatchable;
12
    use SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by Orkhanahmadov\LaravelGoldenpay\Events\PaymentEvent: $id, $relations, $class, $connection, $keyBy
Loading history...
13
14
    /**
15
     * @var Payment
16
     */
17
    public $payment;
18
19
    /**
20
     * Create a new event instance.
21
     *
22
     * @param Payment $payment
23
     */
24
    public function __construct(Payment $payment)
25
    {
26
        $this->payment = $payment;
27
    }
28
}
29