Documentation

Collection
in package

Class Collection

Tags
date

4/5/20

author

Abdullah Al-Faqeir abdullah@devloops.net

Table of Contents

Properties

$documents  : Documents
$overrides  : Overrides
$synonyms  : Synonyms
$apiCall  : ApiCall
$exists  : bool|null
$name  : string

Methods

__construct()  : mixed
Collection constructor.
delete()  : array<string|int, mixed>
endPointPath()  : string
exists()  : bool|null
getDocuments()  : Documents
getOverrides()  : Overrides
getSynonyms()  : Synonyms
retrieve()  : array<string|int, mixed>
setExists()  : void
Set collection exists flag.
update()  : array<string|int, mixed>

Properties

Methods

__construct()

Collection constructor.

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

endPointPath()

public endPointPath() : string
Return values
string

exists()

public exists() : bool|null
Return values
bool|null

setExists()

Set collection exists flag.

public setExists(bool $exists) : void
Parameters
$exists : bool

update()

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

        
On this page

Search results