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
$data
Contain EdgeDB data.
private
array<string|int, mixed>
$data
$error
Contain EdgeDB errors
private
array<string|int, mixed>|null
$error
Methods
__construct()
Creates an EdgeDB HTTP response instance
public
__construct(StreamInterface $body) : mixed
Parameters
- $body : StreamInterface
Tags
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>