PayStart::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
c 0
b 0
f 0
nc 1
nop 3
dl 0
loc 6
rs 10
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