Lines Matching refs:string
39 * @param string|null $id The document ID, if null it will be created
40 * @param array|string $data Data array
41 * @param Index|string $index Index name
43 public function __construct(?string $id = null, $data = [], $index = '')
53 public function __get(string $key)
61 public function __set(string $key, $value): void
66 public function __isset(string $key): bool
71 public function __unset(string $key): void
101 public function set(string $key, $value): self
114 public function has(string $key): bool
124 public function remove(string $key): self
145 * @param string $key Key to add the file to
146 * @param string $filepath Path to add the file
147 * @param string $mimeType Header mime type
149 public function addFile(string $key, string $filepath, string $mimeType = ''): self
165 public function addFileContent(string $key, string $content): self
173 * @param string $key Field key
177 public function addGeoPoint(string $key, float $latitude, float $longitude): self
189 * @param array|string $data Data array
201 * @return array|string Document data
232 public function setPipeline(string $pipeline): self
237 public function getPipeline(): string