CallbackReceived::__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
eloc 4
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 4
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