PayStart   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
c 0
b 0
f 0
dl 0
loc 15
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yansongda\Pay\Event;
6
7
use Yansongda\Artful\Contract\PluginInterface;
8
use Yansongda\Artful\Event\Event;
9
use Yansongda\Artful\Rocket;
10
11
class PayStart extends Event
12
{
13
    /**
14
     * @var PluginInterface[]
15
     */
16
    public array $plugins;
17
18
    public array $params;
19
20
    public function __construct(array $plugins, array $params, ?Rocket $rocket = null)
21
    {
22
        $this->plugins = $plugins;
23
        $this->params = $params;
24
25
        parent::__construct($rocket);
26
    }
27
}
28