Documentation

Synonyms
in package
implements ArrayAccess

Class Synonyms

Table of Contents

Interfaces

ArrayAccess

Constants

RESOURCE_PATH  = 'synonyms'

Properties

$apiCall  : ApiCall
$collectionName  : string
$synonyms  : array<string|int, mixed>

Methods

__construct()  : mixed
Synonyms constructor.
endPointPath()  : string
offsetExists()  : bool
offsetGet()  : Synonym
offsetSet()  : void
offsetUnset()  : void
retrieve()  : array<string|int, mixed>
upsert()  : array<string|int, mixed>

Constants

RESOURCE_PATH

public mixed RESOURCE_PATH = 'synonyms'

Properties

$collectionName

private string $collectionName

$synonyms

private array<string|int, mixed> $synonyms = []

Methods

__construct()

Synonyms constructor.

public __construct(string $collectionName, ApiCall $apiCall) : mixed
Parameters
$collectionName : string
$apiCall : ApiCall

endPointPath()

public endPointPath([string $synonymId = '' ]) : string
Parameters
$synonymId : string = ''
Return values
string

offsetExists()

public offsetExists(mixed $synonymId) : bool
Parameters
$synonymId : mixed
Tags
inheritDoc
Return values
bool

offsetGet()

public offsetGet(mixed $synonymId) : Synonym
Parameters
$synonymId : mixed
Tags
inheritDoc
Return values
Synonym

offsetSet()

public offsetSet(mixed $synonymId, mixed $value) : void
Parameters
$synonymId : mixed
$value : mixed
Tags
inheritDoc

offsetUnset()

public offsetUnset(mixed $synonymId) : void
Parameters
$synonymId : mixed
Tags
inheritDoc

upsert()

public upsert(string $synonymId, array<string|int, mixed> $config) : array<string|int, mixed>
Parameters
$synonymId : string
$config : array<string|int, mixed>
Tags
throws
TypesenseClientError|Exception
Return values
array<string|int, mixed>

        
On this page

Search results