StatusChanged::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
ccs 4
cts 4
cp 1
cc 1
eloc 3
nc 1
nop 2
crap 1
1
<?php
2
3
namespace Recca0120\LaravelPayum\Events;
4
5
use Payum\Core\Model\PaymentInterface;
6
use Payum\Core\Request\GetStatusInterface;
7
8
class StatusChanged
9
{
10
    /**
11
     * $status.
12
     *
13
     * @var \Payum\Core\Request\GetStatusInterface
14
     */
15
    public $status;
16
17
    /**
18
     * $payment.
19
     *
20
     * @var \Payum\Core\Model\PaymentInterface
21
     */
22
    public $payment;
23
24
    /**
25
     * __construct.
26
     *
27
     * @param \Payum\Core\Request\GetStatusInterface $status
28
     * @param \Payum\Core\Model\PaymentInterface $payment
29
     */
30 2
    public function __construct(GetStatusInterface $status, PaymentInterface $payment)
31
    {
32 2
        $this->status = $status;
33 2
        $this->payment = $payment;
34 2
    }
35
}
36