RequestReceived::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
1
<?php
2
3
namespace Yansongda\Pay\Events;
4
5
class RequestReceived 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