Completed
Push — master ( 1ec9e3...ab571a )
by Songda
03:58
created

Event   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Yansongda\Pay\Events;
4
5
class Event extends \Symfony\Component\EventDispatcher\Event
6
{
7
    /**
8
     * Driver.
9
     *
10
     * @var string
11
     */
12
    public $driver;
13
14
    /**
15
     * Method.
16
     *
17
     * @var string
18
     */
19
    public $gateway;
20
21
    /**
22
     * Extra attributes.
23
     *
24
     * @var mixed
25
     */
26
    public $attributes;
27
28
    /**
29
     * Bootstrap.
30
     *
31
     * @author yansongda <[email protected]>
32
     *
33
     * @param string $driver
34
     * @param string $gateway
35
     */
36
    public function __construct(string $driver, string $gateway)
37
    {
38
        $this->driver = $driver;
39
        $this->gateway = $gateway;
40
    }
41
}
42