PaymentEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
nc 1
nop 1
dl 0
loc 3
c 1
b 0
f 0
cc 1
rs 10
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