Meilisearch PHP | Documentation

Network extends Endpoint
in package

Tags
phpstan-import-type

RemoteConfig from NetworkResults

Table of Contents

Constants

PATH  = '/network'

Properties

$apiKey  : string|null
$http  : Http

Methods

__construct()  : mixed
addRemote()  : Task
Add a remote to the network.
get()  : RemoteConfig|null>}
initialize()  : Task
Initialize a network with the current instance as leader.
removeRemote()  : Task
Remove a remote from the network.
show()  : array<string|int, mixed>|null

Constants

PATH

protected mixed PATH = '/network'

Properties

Methods

__construct()

public __construct(Http $http[, string|null $apiKey = null ]) : mixed
Parameters
$http : Http
$apiKey : string|null = null

addRemote()

Add a remote to the network.

public addRemote(non-empty-string $name, RemoteConfig $remote) : Task
Parameters
$name : non-empty-string
$remote : RemoteConfig
Return values
Task

get()

public get() : RemoteConfig|null>}
Return values
RemoteConfig|null>}

initialize()

Initialize a network with the current instance as leader.

public initialize(RemoteConfig>} $options) : Task
Parameters
$options : RemoteConfig>}
Return values
Task

removeRemote()

Remove a remote from the network.

public removeRemote(non-empty-string $name) : Task
Parameters
$name : non-empty-string
Return values
Task

show()

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

        
On this page

Search results