Documentation

EdgeDbHttpResponse
in package

Represent an EdgeDB HTTP response.

Table of Contents

$data  : array<string|int, mixed>
Contain EdgeDB data.
$error  : array<string|int, mixed>|null
Contain EdgeDB errors
__construct()  : mixed
Creates an EdgeDB HTTP response instance
countData()  : int
Count the number of data results.
getData()  : array<string|int, mixed>
Get EdgeDB response data
getError()  : array<string|int, mixed>
Get EdgeDB response error

Properties

Methods

__construct()

Creates an EdgeDB HTTP response instance

public __construct(StreamInterface $body) : mixed
Parameters
$body : StreamInterface
Tags
throws
EdgeDbException

If an error happens while processing the response.

Return values
mixed

countData()

Count the number of data results.

public countData() : int
Return values
int

getData()

Get EdgeDB response data

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

getError()

Get EdgeDB response error

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

Search results