CallbackReceived   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

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 Psr\Http\Message\ServerRequestInterface;
8
use Yansongda\Artful\Event\Event;
9
use Yansongda\Artful\Rocket;
10
11
class CallbackReceived extends Event
12
{
13
    public string $provider;
14
15
    public ?array $params = null;
16
17
    public array|ServerRequestInterface|null $contents;
18
19
    public function __construct(string $provider, array|ServerRequestInterface|null $contents, ?array $params = null, ?Rocket $rocket = null)
20
    {
21
        $this->provider = $provider;
22
        $this->contents = $contents;
23
        $this->params = $params;
24
25
        parent::__construct($rocket);
26
    }
27
}
28