Meilisearch PHP | Documentation

NetworkResults extends Data
in package

Table of Contents

Properties

$data  : mixed
$remotes  : array<non-empty-string, array{url: non-empty-string, searchApiKey: string}>
$self  : non-empty-string

Methods

__construct()  : mixed
count()  : int
getIterator()  : ArrayIterator
getRemotes()  : array<non-empty-string, array{url: non-empty-string, searchApiKey: string}>
getSelf()  : non-empty-string
offsetExists()  : bool
offsetGet()  : mixed
offsetSet()  : void
offsetUnset()  : void

Properties

$data

protected mixed $data = []

$remotes

private array<non-empty-string, array{url: non-empty-string, searchApiKey: string}> $remotes

a mapping of remote node IDs to their connection details

$self

private non-empty-string $self

the identifier for the local node

Methods

__construct()

public __construct(array{self?: non-empty-string, remotes?: array$params) : mixed
Parameters
$params : array{self?: non-empty-string, remotes?: array}

count()

public count() : int
Return values
int

getIterator()

public getIterator() : ArrayIterator
Return values
ArrayIterator

getRemotes()

public getRemotes() : array<non-empty-string, array{url: non-empty-string, searchApiKey: string}>
Return values
array<non-empty-string, array{url: non-empty-string, searchApiKey: string}>

getSelf()

public getSelf() : non-empty-string
Return values
non-empty-string

the identifier for the local node

offsetExists()

public offsetExists(mixed $offset) : bool
Parameters
$offset : mixed
Return values
bool

offsetGet()

public offsetGet(mixed $offset) : mixed
Parameters
$offset : mixed
Attributes
#[ReturnTypeWillChange]

offsetSet()

public offsetSet(mixed $offset, mixed $value) : void
Parameters
$offset : mixed
$value : mixed

offsetUnset()

public offsetUnset(mixed $offset) : void
Parameters
$offset : mixed

        
On this page

Search results