StatusChanged   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 28
rs 10
ccs 4
cts 4
cp 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 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