@@ -20,8 +20,8 @@ class AbstractUpdateAction extends Param
20
20
/**
21
21
* Sets the id of the document.
22
22
*
23
- * @param string $id
24
- * @return \Elastica\Document
23
+ * @param string $id
24
+ * @return $this
25
25
*/
26
26
public function setId ($ id )
27
27
{
@@ -49,8 +49,8 @@ public function hasId()
49
49
/**
50
50
* Sets lifetime of document
51
51
*
52
- * @param string $ttl
53
- * @return \Elastica\Document
52
+ * @param string $ttl
53
+ * @return $this
54
54
*/
55
55
public function setTtl ($ ttl )
56
56
{
@@ -76,8 +76,8 @@ public function hasTtl()
76
76
/**
77
77
* Sets the document type name
78
78
*
79
- * @param string $type Type name
80
- * @return \Elastica\Document Current object
79
+ * @param string $type Type name
80
+ * @return $this
81
81
*/
82
82
public function setType ($ type )
83
83
{
@@ -92,8 +92,9 @@ public function setType($type)
92
92
/**
93
93
* Return document type name
94
94
*
95
- * @return string Document type name
96
95
* @throws \Elastica\Exception\InvalidException
96
+ *
97
+ * @return string Document type name
97
98
*/
98
99
public function getType ()
99
100
{
@@ -103,8 +104,8 @@ public function getType()
103
104
/**
104
105
* Sets the document index name
105
106
*
106
- * @param string $index Index name
107
- * @return \Elastica\Document Current object
107
+ * @param string $index Index name
108
+ * @return $this
108
109
*/
109
110
public function setIndex ($ index )
110
111
{
@@ -118,8 +119,9 @@ public function setIndex($index)
118
119
/**
119
120
* Get the document index name
120
121
*
121
- * @return string Index name
122
122
* @throws \Elastica\Exception\InvalidException
123
+ *
124
+ * @return string Index name
123
125
*/
124
126
public function getIndex ()
125
127
{
@@ -129,8 +131,8 @@ public function getIndex()
129
131
/**
130
132
* Sets the version of a document for use with optimistic concurrency control
131
133
*
132
- * @param int $version Document version
133
- * @return \Elastica\Document Current object
134
+ * @param int $version Document version
135
+ * @return $this
134
136
* @link http://www.elasticsearch.org/blog/2011/02/08/versioning.html
135
137
*/
136
138
public function setVersion ($ version )
@@ -160,8 +162,8 @@ public function hasVersion()
160
162
* Sets the version_type of a document
161
163
* Default in ES is internal, but you can set to external to use custom versioning
162
164
*
163
- * @param int $versionType Document version type
164
- * @return \Elastica\Document Current object
165
+ * @param int $versionType Document version type
166
+ * @return $this
165
167
* @link http://www.elasticsearch.org/guide/reference/api/index_.html
166
168
*/
167
169
public function setVersionType ($ versionType )
@@ -190,8 +192,8 @@ public function hasVersionType()
190
192
/**
191
193
* Sets parent document id
192
194
*
193
- * @param string|int $parent Parent document id
194
- * @return \Elastica\Document Current object
195
+ * @param string|int $parent Parent document id
196
+ * @return $this
195
197
* @link http://www.elasticsearch.org/guide/reference/mapping/parent-field.html
196
198
*/
197
199
public function setParent ($ parent )
@@ -220,8 +222,8 @@ public function hasParent()
220
222
/**
221
223
* Set operation type
222
224
*
223
- * @param string $opType Only accept create
224
- * @return \Elastica\Document Current object
225
+ * @param string $opType Only accept create
226
+ * @return $this
225
227
*/
226
228
public function setOpType ($ opType )
227
229
{
@@ -248,8 +250,8 @@ public function hasOpType()
248
250
/**
249
251
* Set percolate query param
250
252
*
251
- * @param string $value percolator filter
252
- * @return \Elastica\Document
253
+ * @param string $value percolator filter
254
+ * @return $this
253
255
*/
254
256
public function setPercolate ($ value = '* ' )
255
257
{
@@ -277,8 +279,8 @@ public function hasPercolate()
277
279
/**
278
280
* Set routing query param
279
281
*
280
- * @param string $value routing
281
- * @return \Elastica\Document
282
+ * @param string $value routing
283
+ * @return $this
282
284
*/
283
285
public function setRouting ($ value )
284
286
{
@@ -304,8 +306,8 @@ public function hasRouting()
304
306
}
305
307
306
308
/**
307
- * @param array|string $fields
308
- * @return \Elastica\Document
309
+ * @param array|string $fields
310
+ * @return $this
309
311
*/
310
312
public function setFields ($ fields )
311
313
{
@@ -317,7 +319,7 @@ public function setFields($fields)
317
319
}
318
320
319
321
/**
320
- * @return \Elastica\Document
322
+ * @return $this
321
323
*/
322
324
public function setFieldsSource ()
323
325
{
@@ -341,8 +343,8 @@ public function hasFields()
341
343
}
342
344
343
345
/**
344
- * @param int $num
345
- * @return \Elastica\Document
346
+ * @param int $num
347
+ * @return $this
346
348
*/
347
349
public function setRetryOnConflict ($ num )
348
350
{
@@ -366,8 +368,8 @@ public function hasRetryOnConflict()
366
368
}
367
369
368
370
/**
369
- * @param string $timestamp
370
- * @return \Elastica\Document
371
+ * @param string $timestamp
372
+ * @return $this
371
373
*/
372
374
public function setTimestamp ($ timestamp )
373
375
{
@@ -391,8 +393,8 @@ public function hasTimestamp()
391
393
}
392
394
393
395
/**
394
- * @param bool $refresh
395
- * @return \Elastica\Document
396
+ * @param bool $refresh
397
+ * @return $this
396
398
*/
397
399
public function setRefresh ($ refresh = true )
398
400
{
@@ -416,8 +418,8 @@ public function hasRefresh()
416
418
}
417
419
418
420
/**
419
- * @param string $timeout
420
- * @return \Elastica\Document
421
+ * @param string $timeout
422
+ * @return $this
421
423
*/
422
424
public function setTimeout ($ timeout )
423
425
{
@@ -441,8 +443,8 @@ public function hasTimeout()
441
443
}
442
444
443
445
/**
444
- * @param string $timeout
445
- * @return \Elastica\Document
446
+ * @param string $timeout
447
+ * @return $this
446
448
*/
447
449
public function setConsistency ($ timeout )
448
450
{
@@ -466,8 +468,8 @@ public function hasConsistency()
466
468
}
467
469
468
470
/**
469
- * @param string $timeout
470
- * @return \Elastica\Document
471
+ * @param string $timeout
472
+ * @return $this
471
473
*/
472
474
public function setReplication ($ timeout )
473
475
{
@@ -492,7 +494,7 @@ public function hasReplication()
492
494
493
495
/**
494
496
* @param \Elastica\Document|array $data
495
- * @return \Elastica\Document
497
+ * @return $this
496
498
*/
497
499
public function setUpsert ($ data )
498
500
{
0 commit comments