MethodCalled   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 8
c 1
b 0
f 0
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
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