ApiRequested   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace Yansongda\Pay\Events;
4
5
class ApiRequested extends Event
6
{
7
    /**
8
     * Endpoint.
9
     *
10
     * @var string
11
     */
12
    public $endpoint;
13
14
    /**
15
     * Result.
16
     *
17
     * @var array
18
     */
19
    public $result;
20
21
    /**
22
     * Bootstrap.
23
     *
24
     * @param string $driver
25
     * @param string $gateway
26
     * @param string $endpoint
27
     * @param array  $result
28
     */
29
    public function __construct(string $driver, string $gateway, string $endpoint, array $result)
30
    {
31
        $this->endpoint = $endpoint;
32
        $this->result = $result;
33
34
        parent::__construct($driver, $gateway);
35
    }
36
}
37