EsResponse
in package
FinalYes
Narrows the return type of the ES client (`Elasticsearch|Promise`) to a synchronous response.
The async mode of the client is not used, so a Promise means a wiring error.
Table of Contents
Methods
Methods
toArray()
public
static toArray(Elasticsearch|Promise $response) : array<string, mixed>
Parameters
- $response : Elasticsearch|Promise
Return values
array<string, mixed>toBool()
public
static toBool(Elasticsearch|Promise $response) : bool
Parameters
- $response : Elasticsearch|Promise
Return values
boolsync()
private
static sync(Elasticsearch|Promise $response) : Elasticsearch
Parameters
- $response : Elasticsearch|Promise