first commit
This commit is contained in:
9
vendor/yansongda/pay/src/Event/ApiRequested.php
vendored
Normal file
9
vendor/yansongda/pay/src/Event/ApiRequested.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Yansongda\Pay\Event;
|
||||
|
||||
class ApiRequested extends Event
|
||||
{
|
||||
}
|
||||
9
vendor/yansongda/pay/src/Event/ApiRequesting.php
vendored
Normal file
9
vendor/yansongda/pay/src/Event/ApiRequesting.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Yansongda\Pay\Event;
|
||||
|
||||
class ApiRequesting extends Event
|
||||
{
|
||||
}
|
||||
39
vendor/yansongda/pay/src/Event/CallbackReceived.php
vendored
Normal file
39
vendor/yansongda/pay/src/Event/CallbackReceived.php
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Yansongda\Pay\Event;
|
||||
|
||||
use Yansongda\Pay\Rocket;
|
||||
|
||||
class CallbackReceived extends Event
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $provider;
|
||||
|
||||
/**
|
||||
* @var array|\Psr\Http\Message\ServerRequestInterface|null
|
||||
*/
|
||||
public $contents;
|
||||
|
||||
/**
|
||||
* @var array|null
|
||||
*/
|
||||
public $params;
|
||||
|
||||
/**
|
||||
* Bootstrap.
|
||||
*
|
||||
* @param array|\Psr\Http\Message\ServerRequestInterface|null $contents
|
||||
*/
|
||||
public function __construct(string $provider, $contents, ?array $params, ?Rocket $rocket)
|
||||
{
|
||||
$this->provider = $provider;
|
||||
$this->contents = $contents;
|
||||
$this->params = $params;
|
||||
|
||||
parent::__construct($rocket);
|
||||
}
|
||||
}
|
||||
23
vendor/yansongda/pay/src/Event/Event.php
vendored
Normal file
23
vendor/yansongda/pay/src/Event/Event.php
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Yansongda\Pay\Event;
|
||||
|
||||
use Yansongda\Pay\Rocket;
|
||||
|
||||
class Event
|
||||
{
|
||||
/**
|
||||
* @var \Yansongda\Pay\Rocket|null
|
||||
*/
|
||||
public $rocket;
|
||||
|
||||
/**
|
||||
* Bootstrap.
|
||||
*/
|
||||
public function __construct(?Rocket $rocket)
|
||||
{
|
||||
$this->rocket = $rocket;
|
||||
}
|
||||
}
|
||||
34
vendor/yansongda/pay/src/Event/MethodCalled.php
vendored
Normal file
34
vendor/yansongda/pay/src/Event/MethodCalled.php
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Yansongda\Pay\Event;
|
||||
|
||||
use Yansongda\Pay\Rocket;
|
||||
|
||||
class MethodCalled extends Event
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $provider;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $name;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
public $params;
|
||||
|
||||
public function __construct(string $provider, string $name, array $params, ?Rocket $rocket)
|
||||
{
|
||||
$this->provider = $provider;
|
||||
$this->name = $name;
|
||||
$this->params = $params;
|
||||
|
||||
parent::__construct($rocket);
|
||||
}
|
||||
}
|
||||
9
vendor/yansongda/pay/src/Event/PayFinish.php
vendored
Normal file
9
vendor/yansongda/pay/src/Event/PayFinish.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Yansongda\Pay\Event;
|
||||
|
||||
class PayFinish extends Event
|
||||
{
|
||||
}
|
||||
28
vendor/yansongda/pay/src/Event/PayStarted.php
vendored
Normal file
28
vendor/yansongda/pay/src/Event/PayStarted.php
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Yansongda\Pay\Event;
|
||||
|
||||
use Yansongda\Pay\Rocket;
|
||||
|
||||
class PayStarted extends Event
|
||||
{
|
||||
/**
|
||||
* @var \Yansongda\Pay\Contract\PluginInterface[]
|
||||
*/
|
||||
public $plugins;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
public $params;
|
||||
|
||||
public function __construct(array $plugins, array $params, ?Rocket $rocket)
|
||||
{
|
||||
$this->plugins = $plugins;
|
||||
$this->params = $params;
|
||||
|
||||
parent::__construct($rocket);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user