CoolCMS API

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

toArray()  : array<string, mixed>
toBool()  : bool
sync()  : Elasticsearch

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
bool

sync()

private static sync(Elasticsearch|Promise $response) : Elasticsearch
Parameters
$response : Elasticsearch|Promise
Return values
Elasticsearch
On this page

Search results