Meilisearch PHP | Documentation

FederationOptions
in package

Table of Contents

Properties

$remote  : non-empty-string|null
$weight  : float|null

Methods

fromArray()  : self
setRemote()  : $this
setWeight()  : $this
toArray()  : array{weight?: float, remote?: non-empty-string}

Properties

Methods

fromArray()

public static fromArray(array{weight?: float, remote?: non-empty-string} $data) : self
Parameters
$data : array{weight?: float, remote?: non-empty-string}
Return values
self

setRemote()

public setRemote(non-empty-string $remote) : $this
Parameters
$remote : non-empty-string
Return values
$this

setWeight()

public setWeight(float $weight) : $this
Parameters
$weight : float
Return values
$this

toArray()

public toArray() : array{weight?: float, remote?: non-empty-string}
Return values
array{weight?: float, remote?: non-empty-string}
On this page

Search results