init
- 框架初始化 - 安装插件 - 修复PHP8.4报错
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Yansongda\Pay\Event;
|
||||
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
use Yansongda\Pay\Rocket;
|
||||
|
||||
class CallbackReceived extends Event
|
||||
{
|
||||
public string $provider;
|
||||
|
||||
public ?array $params = null;
|
||||
|
||||
/**
|
||||
* @var null|array|ServerRequestInterface
|
||||
*/
|
||||
public $contents;
|
||||
|
||||
/**
|
||||
* @param null|array|ServerRequestInterface $contents
|
||||
*/
|
||||
public function __construct(string $provider, $contents, ?array $params = null, ?Rocket $rocket = null)
|
||||
{
|
||||
$this->provider = $provider;
|
||||
$this->contents = $contents;
|
||||
$this->params = $params;
|
||||
|
||||
parent::__construct($rocket);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user