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.
27 lines
656 B
27 lines
656 B
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Yansongda\Pay;
|
|
|
|
use JsonSerializable as JsonSerializableInterface;
|
|
use Yansongda\Supports\Traits\Accessable;
|
|
use Yansongda\Supports\Traits\Arrayable;
|
|
use Yansongda\Supports\Traits\Serializable;
|
|
|
|
class Request extends \GuzzleHttp\Psr7\Request implements JsonSerializableInterface
|
|
{
|
|
use Accessable;
|
|
use Arrayable;
|
|
use Serializable;
|
|
|
|
public function toArray(): array
|
|
{
|
|
return [
|
|
'url' => $this->getUri()->__toString(),
|
|
'method' => $this->getMethod(),
|
|
'headers' => $this->getHeaders(),
|
|
'body' => (string) $this->getBody(),
|
|
];
|
|
}
|
|
}
|
|
|