Documentation

Document
in package

Class Document

Tags
date

4/5/20

author

Abdullah Al-Faqeir abdullah@devloops.net

Table of Contents

Properties

$apiCall  : ApiCall
$collectionName  : string
$documentId  : string

Methods

__construct()  : mixed
Document constructor.
delete()  : array<string|int, mixed>
retrieve()  : array<string|int, mixed>
update()  : array<string|int, mixed>
endpointPath()  : string

Properties

$collectionName

private string $collectionName

Methods

__construct()

Document constructor.

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

update()

public update(array<string|int, mixed> $partialDocument[, array<string|int, mixed> $options = [] ]) : array<string|int, mixed>
Parameters
$partialDocument : array<string|int, mixed>
$options : array<string|int, mixed> = []
Tags
throws
TypesenseClientError|Exception
Return values
array<string|int, mixed>

endpointPath()

private endpointPath() : string
Return values
string

        
On this page

Search results