Lines Matching refs:string
32 * @var string|null
46 public function __toString(): string
51 $data .= (string) $action;
58 * @param Index|string $index
68 $this->_index = (string) $index;
74 * @return string|null
86 public function getPath(): string
132 public function addDocument(Document $document, ?string $opType = null): self
144 public function addDocuments(array $documents, ?string $opType = null): self
156 public function addScript(AbstractScript $script, ?string $opType = null): self
165 * @param string|null $opType
183 public function addData($data, ?string $opType = null)
242 * @param string $name name of the parameter
247 public function setRequestParam(string $name, $value): self
258 * @param string $time timeout in Elasticsearch time format
262 public function setShardTimeout(string $time): self
268 * @deprecated since version 7.1.3, use the "__toString()" method or cast to string instead.
270 public function toString(): string
272 \trigger_deprecation('ruflin/elastica', '7.1.3', 'The "%s()" method is deprecated, use "__toString()" or cast to string instead. It will be removed in 8.0.', __METHOD__);
274 return (string) $this;
298 $response = $this->_client->request($this->getPath(), Request::POST, (string) $this, $this->_requestParams, Request::NDJSON_CONTENT_TYPE);