You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
668 B
33 lines
668 B
1 year ago
|
<?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);
|
||
|
}
|
||
|
}
|