MethodCalled::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 4
dl 0
loc 7
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yansongda\Pay\Event;
6
7
use Yansongda\Artful\Event\Event;
8
use Yansongda\Artful\Rocket;
9
10
class MethodCalled extends Event
11
{
12
    public string $provider;
13
14
    public string $name;
15
16
    public array $params;
17
18
    public function __construct(string $provider, string $name, array $params, ?Rocket $rocket = null)
19
    {
20
        $this->provider = $provider;
21
        $this->name = $name;
22
        $this->params = $params;
23
24
        parent::__construct($rocket);
25
    }
26
}
27