ApiResponse
Table of Contents
Properties
-
$_body
: array<string|int, mixed>
-
$_headers
: array<string|int, mixed>
-
$_requestId
: string
-
$_status
: number
-
$_wsc
: WebSocket
Methods
-
__construct()
: mixed
-
body()
: array<string|int, mixed>
-
error()
: mixed
-
headers()
: array<string|int, mixed>
-
json()
: object
-
ok()
: mixed
-
requestId()
: string
-
status()
: number
-
wsc()
: array<string|int, mixed>
$_body
protected
array<string|int, mixed>
$_body
= []
protected
array<string|int, mixed>
$_headers
= []
$_requestId
protected
string
$_requestId
$_status
protected
number
$_status
$_wsc
protected
WebSocket
$_wsc
__construct()
public
__construct(array<string|int, mixed> $response[, array<string|int, mixed> $body = null ]) : mixed
Parameters
-
$response
: array<string|int, mixed>
-
-
$body
: array<string|int, mixed>
= null
-
body()
public
body() : array<string|int, mixed>
Return values
array<string|int, mixed>
error()
public
error() : mixed
public
headers() : array<string|int, mixed>
Return values
array<string|int, mixed>
json()
public
json() : object
ok()
public
ok() : mixed
requestId()
public
requestId() : string
status()
public
status() : number
wsc()
public
wsc() : array<string|int, mixed>
Return values
array<string|int, mixed>