SignFailed   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace Yansongda\Pay\Events;
4
5
class SignFailed extends Event
6
{
7
    /**
8
     * Received data.
9
     *
10
     * @var array
11
     */
12
    public $data;
13
14
    /**
15
     * Bootstrap.
16
     *
17
     * @author yansongda <[email protected]>
18
     *
19
     * @param string $driver
20
     * @param string $gateway
21
     * @param array  $data
22
     */
23
    public function __construct(string $driver, string $gateway, array $data)
24
    {
25
        $this->data = $data;
26
27
        parent::__construct($driver, $gateway);
28
    }
29
}
30