@@ -48,6 +48,8 @@ public function __clone()
48
48
*
49
49
* @param array|Expr $expression
50
50
* @param array|Expr ...$expressions
51
+ *
52
+ * @return static
51
53
*/
52
54
public function addAnd ($ expression , ...$ expressions ): self
53
55
{
@@ -67,6 +69,8 @@ public function addAnd($expression, ...$expressions): self
67
69
*
68
70
* @param array|Expr $expression
69
71
* @param array|Expr ...$expressions
72
+ *
73
+ * @return static
70
74
*/
71
75
public function addNor ($ expression , ...$ expressions ): self
72
76
{
@@ -86,6 +90,8 @@ public function addNor($expression, ...$expressions): self
86
90
*
87
91
* @param array|Expr $expression
88
92
* @param array|Expr ...$expressions
93
+ *
94
+ * @return static
89
95
*/
90
96
public function addOr ($ expression , ...$ expressions ): self
91
97
{
@@ -99,6 +105,8 @@ public function addOr($expression, ...$expressions): self
99
105
*
100
106
* @see Expr::all()
101
107
* @see https://docs.mongodb.com/manual/reference/operator/all/
108
+ *
109
+ * @return static
102
110
*/
103
111
public function all (array $ values ): self
104
112
{
@@ -117,6 +125,8 @@ public function all(array $values): self
117
125
* @see https://docs.mongodb.com/manual/reference/operator/elemMatch/
118
126
*
119
127
* @param array|Expr $expression
128
+ *
129
+ * @return static
120
130
*/
121
131
public function elemMatch ($ expression ): self
122
132
{
@@ -131,6 +141,8 @@ public function elemMatch($expression): self
131
141
* @see Expr::equals()
132
142
*
133
143
* @param mixed $value
144
+ *
145
+ * @return static
134
146
*/
135
147
public function equals ($ value ): self
136
148
{
@@ -144,6 +156,8 @@ public function equals($value): self
144
156
*
145
157
* @see Expr::exists()
146
158
* @see https://docs.mongodb.com/manual/reference/operator/exists/
159
+ *
160
+ * @return static
147
161
*/
148
162
public function exists (bool $ bool ): self
149
163
{
@@ -165,6 +179,8 @@ public function expr(): Expr
165
179
* Set the current field for building the expression.
166
180
*
167
181
* @see Expr::field()
182
+ *
183
+ * @return static
168
184
*/
169
185
public function field (string $ field ): self
170
186
{
@@ -183,6 +199,8 @@ public function field(string $field): self
183
199
* @see https://docs.mongodb.com/manual/reference/operator/geoIntersects/
184
200
*
185
201
* @param array|Geometry $geometry
202
+ *
203
+ * @return static
186
204
*/
187
205
public function geoIntersects ($ geometry ): self
188
206
{
@@ -199,6 +217,8 @@ public function geoIntersects($geometry): self
199
217
*
200
218
* @see Expr::geoWithin()
201
219
* @see https://docs.mongodb.com/manual/reference/operator/geoWithin/
220
+ *
221
+ * @return static
202
222
*/
203
223
public function geoWithin (Geometry $ geometry ): self
204
224
{
@@ -218,6 +238,8 @@ public function geoWithin(Geometry $geometry): self
218
238
*
219
239
* @see Expr::geoWithinBox()
220
240
* @see https://docs.mongodb.com/manual/reference/operator/box/
241
+ *
242
+ * @return static
221
243
*/
222
244
public function geoWithinBox (float $ x1 , float $ y1 , float $ x2 , float $ y2 ): self
223
245
{
@@ -234,6 +256,8 @@ public function geoWithinBox(float $x1, float $y1, float $x2, float $y2): self
234
256
*
235
257
* @see Expr::geoWithinCenter()
236
258
* @see https://docs.mongodb.com/manual/reference/operator/center/
259
+ *
260
+ * @return static
237
261
*/
238
262
public function geoWithinCenter (float $ x , float $ y , float $ radius ): self
239
263
{
@@ -249,6 +273,8 @@ public function geoWithinCenter(float $x, float $y, float $radius): self
249
273
*
250
274
* @see Expr::geoWithinCenterSphere()
251
275
* @see https://docs.mongodb.com/manual/reference/operator/centerSphere/
276
+ *
277
+ * @return static
252
278
*/
253
279
public function geoWithinCenterSphere (float $ x , float $ y , float $ radius ): self
254
280
{
@@ -275,6 +301,8 @@ public function geoWithinCenterSphere(float $x, float $y, float $radius): self
275
301
* @param array $point2 Second point of the polygon
276
302
* @param array $point3 Third point of the polygon
277
303
* @param array ...$points Additional points of the polygon
304
+ *
305
+ * @return static
278
306
*/
279
307
public function geoWithinPolygon ($ point1 , $ point2 , $ point3 , ...$ points ): self
280
308
{
@@ -300,6 +328,8 @@ public function getExpression(): array
300
328
* @see https://docs.mongodb.com/manual/reference/operator/gt/
301
329
*
302
330
* @param mixed $value
331
+ *
332
+ * @return static
303
333
*/
304
334
public function gt ($ value ): self
305
335
{
@@ -315,6 +345,8 @@ public function gt($value): self
315
345
* @see https://docs.mongodb.com/manual/reference/operator/gte/
316
346
*
317
347
* @param mixed $value
348
+ *
349
+ * @return static
318
350
*/
319
351
public function gte ($ value ): self
320
352
{
@@ -328,6 +360,8 @@ public function gte($value): self
328
360
*
329
361
* @see Expr::in()
330
362
* @see https://docs.mongodb.com/manual/reference/operator/in/
363
+ *
364
+ * @return static
331
365
*/
332
366
public function in (array $ values ): self
333
367
{
@@ -336,6 +370,9 @@ public function in(array $values): self
336
370
return $ this ;
337
371
}
338
372
373
+ /**
374
+ * @return static
375
+ */
339
376
public function includesReferenceTo (object $ document ): self
340
377
{
341
378
$ this ->query ->includesReferenceTo ($ document );
@@ -350,6 +387,8 @@ public function includesReferenceTo(object $document): self
350
387
*
351
388
* @see Expr::language()
352
389
* @see https://docs.mongodb.com/manual/reference/operator/text/
390
+ *
391
+ * @return static
353
392
*/
354
393
public function language (string $ language ): self
355
394
{
@@ -365,6 +404,8 @@ public function language(string $language): self
365
404
* @see https://docs.mongodb.com/manual/reference/operator/lte/
366
405
*
367
406
* @param mixed $value
407
+ *
408
+ * @return static
368
409
*/
369
410
public function lt ($ value ): self
370
411
{
@@ -380,6 +421,8 @@ public function lt($value): self
380
421
* @see https://docs.mongodb.com/manual/reference/operator/lte/
381
422
*
382
423
* @param mixed $value
424
+ *
425
+ * @return static
383
426
*/
384
427
public function lte ($ value ): self
385
428
{
@@ -396,6 +439,8 @@ public function lte($value): self
396
439
*
397
440
* @param float|int $divisor
398
441
* @param float|int $remainder
442
+ *
443
+ * @return static
399
444
*/
400
445
public function mod ($ divisor , $ remainder = 0 ): self
401
446
{
@@ -414,6 +459,8 @@ public function mod($divisor, $remainder = 0): self
414
459
* @see https://docs.mongodb.com/manual/reference/operator/not/
415
460
*
416
461
* @param array|Expr $expression
462
+ *
463
+ * @return static
417
464
*/
418
465
public function not ($ expression ): self
419
466
{
@@ -429,6 +476,8 @@ public function not($expression): self
429
476
* @see https://docs.mongodb.com/manual/reference/operator/ne/
430
477
*
431
478
* @param mixed $value
479
+ *
480
+ * @return static
432
481
*/
433
482
public function notEqual ($ value ): self
434
483
{
@@ -442,6 +491,8 @@ public function notEqual($value): self
442
491
*
443
492
* @see Expr::notIn()
444
493
* @see https://docs.mongodb.com/manual/reference/operator/nin/
494
+ *
495
+ * @return static
445
496
*/
446
497
public function notIn (array $ values ): self
447
498
{
@@ -460,6 +511,8 @@ public function notIn(array $values): self
460
511
*
461
512
* @param mixed $start
462
513
* @param mixed $end
514
+ *
515
+ * @return static
463
516
*/
464
517
public function range ($ start , $ end ): self
465
518
{
@@ -468,6 +521,9 @@ public function range($start, $end): self
468
521
return $ this ;
469
522
}
470
523
524
+ /**
525
+ * @return static
526
+ */
471
527
public function references (object $ document ): self
472
528
{
473
529
$ this ->query ->references ($ document );
@@ -480,6 +536,8 @@ public function references(object $document): self
480
536
*
481
537
* @see Expr::size()
482
538
* @see https://docs.mongodb.com/manual/reference/operator/size/
539
+ *
540
+ * @return static
483
541
*/
484
542
public function size (int $ size ): self
485
543
{
@@ -497,6 +555,8 @@ public function size(int $size): self
497
555
*
498
556
* @see Expr::text()
499
557
* @see https://docs.mongodb.com/master/reference/operator/query/text/
558
+ *
559
+ * @return static
500
560
*/
501
561
public function text (string $ search ): self
502
562
{
@@ -512,6 +572,8 @@ public function text(string $search): self
512
572
* @see https://docs.mongodb.com/manual/reference/operator/type/
513
573
*
514
574
* @param int|string $type
575
+ *
576
+ * @return static
515
577
*/
516
578
public function type ($ type ): self
517
579
{
0 commit comments