ApiRequest
in package
Table of Contents
Properties
- $_body : array<string|int, mixed>
- $_headers : array<string|int, mixed>
- $_method : string
- $_path : string
- $_query : array<string|int, mixed>
- $_requestId : string
Methods
- __construct() : mixed
- ApiRequest constructor.
- body() : array<string|int, mixed>
- headers() : array<string|int, mixed>
- method() : string
- path() : string
- query() : array<string|int, mixed>
- requestId() : mixed
- toJson() : mixed
Properties
$_body
protected
array<string|int, mixed>
$_body
= []
$_headers
protected
array<string|int, mixed>
$_headers
= []
$_method
protected
string
$_method
$_path
protected
string
$_path
$_query
protected
array<string|int, mixed>
$_query
= []
$_requestId
protected
string
$_requestId
Methods
__construct()
ApiRequest constructor.
public
__construct([array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $options : array<string|int, mixed> = []
body()
public
body() : array<string|int, mixed>
Return values
array<string|int, mixed>headers()
public
headers() : array<string|int, mixed>
Return values
array<string|int, mixed>method()
public
method() : string
Return values
stringpath()
public
path() : string
Return values
stringquery()
public
query() : array<string|int, mixed>
Return values
array<string|int, mixed>requestId()
public
requestId() : mixed
toJson()
public
toJson() : mixed