first commit

This commit is contained in:
Mr.Qin
2022-08-19 19:48:37 +08:00
commit afdd648b65
3275 changed files with 631084 additions and 0 deletions

28
vendor/yansongda/pay/src/Request.php vendored Normal file
View File

@@ -0,0 +1,28 @@
<?php
declare(strict_types=1);
namespace Yansongda\Pay;
use JsonSerializable as JsonSerializableInterface;
use Serializable as SerializableInterface;
use Yansongda\Supports\Traits\Accessable;
use Yansongda\Supports\Traits\Arrayable;
use Yansongda\Supports\Traits\Serializable;
class Request extends \GuzzleHttp\Psr7\Request implements JsonSerializableInterface, SerializableInterface
{
use Accessable;
use Arrayable;
use Serializable;
public function toArray(): array
{
return [
'url' => $this->getUri()->__toString(),
'method' => $this->getMethod(),
'headers' => $this->getHeaders(),
'body' => $this->getBody()->getContents(),
];
}
}