Documentation

ApiResponse
in package

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>

Properties

$_body

protected array<string|int, mixed> $_body = []

$_headers

protected array<string|int, mixed> $_headers = []

Methods

__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>

headers()

public headers() : array<string|int, mixed>
Return values
array<string|int, mixed>

requestId()

public requestId() : string
Return values
string

status()

public status() : number
Return values
number

wsc()

public wsc() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results