@@ -141,7 +141,7 @@ public function __construct(Connection $connection, Processor $processor)
141
141
/**
142
142
* Set the projections.
143
143
*
144
- * @param array $columns
144
+ * @param array $columns
145
145
* @return $this
146
146
*/
147
147
public function project ($ columns )
@@ -153,8 +153,7 @@ public function project($columns)
153
153
154
154
/**
155
155
* Set the cursor timeout in seconds.
156
- *
157
- * @param int $seconds
156
+ * @param int $seconds
158
157
* @return $this
159
158
*/
160
159
public function timeout ($ seconds )
@@ -167,7 +166,7 @@ public function timeout($seconds)
167
166
/**
168
167
* Set the cursor hint.
169
168
*
170
- * @param mixed $index
169
+ * @param mixed $index
171
170
* @return $this
172
171
*/
173
172
public function hint ($ index )
@@ -218,8 +217,8 @@ public function cursor($columns = [])
218
217
/**
219
218
* Execute the query as a fresh "select" statement.
220
219
*
221
- * @param array $columns
222
- * @param bool $returnLazy
220
+ * @param array $columns
221
+ * @param bool $returnLazy
223
222
* @return array|static[]|Collection|LazyCollection
224
223
*/
225
224
public function getFresh ($ columns = [], $ returnLazy = false )
@@ -523,10 +522,10 @@ public function orderBy($column, $direction = 'asc')
523
522
/**
524
523
* Add a "where all" clause to the query.
525
524
*
526
- * @param string $column
527
- * @param array $values
528
- * @param string $boolean
529
- * @param bool $not
525
+ * @param string $column
526
+ * @param array $values
527
+ * @param string $boolean
528
+ * @param bool $not
530
529
* @return $this
531
530
*/
532
531
public function whereAll ($ column , array $ values , $ boolean = 'and ' , $ not = false )
@@ -730,8 +729,8 @@ public function truncate(): bool
730
729
/**
731
730
* Get an array with the values of a given column.
732
731
*
733
- * @param string $column
734
- * @param string $key
732
+ * @param string $column
733
+ * @param string $key
735
734
* @return array
736
735
*
737
736
* @deprecated
@@ -763,9 +762,9 @@ public function raw($expression = null)
763
762
/**
764
763
* Append one or more values to an array.
765
764
*
766
- * @param mixed $column
767
- * @param mixed $value
768
- * @param bool $unique
765
+ * @param mixed $column
766
+ * @param mixed $value
767
+ * @param bool $unique
769
768
* @return int
770
769
*/
771
770
public function push ($ column , $ value = null , $ unique = false )
@@ -790,8 +789,8 @@ public function push($column, $value = null, $unique = false)
790
789
/**
791
790
* Remove one or more values from an array.
792
791
*
793
- * @param mixed $column
794
- * @param mixed $value
792
+ * @param mixed $column
793
+ * @param mixed $value
795
794
* @return int
796
795
*/
797
796
public function pull ($ column , $ value = null )
@@ -814,7 +813,7 @@ public function pull($column, $value = null)
814
813
/**
815
814
* Remove one or more fields.
816
815
*
817
- * @param mixed $columns
816
+ * @param mixed $columns
818
817
* @return int
819
818
*/
820
819
public function drop ($ columns )
@@ -845,8 +844,8 @@ public function newQuery()
845
844
/**
846
845
* Perform an update query.
847
846
*
848
- * @param array $query
849
- * @param array $options
847
+ * @param array $query
848
+ * @param array $options
850
849
* @return int
851
850
*/
852
851
protected function performUpdate ($ query , array $ options = [])
@@ -868,7 +867,7 @@ protected function performUpdate($query, array $options = [])
868
867
/**
869
868
* Convert a key to ObjectID if needed.
870
869
*
871
- * @param mixed $id
870
+ * @param mixed $id
872
871
* @return mixed
873
872
*/
874
873
public function convertKey ($ id )
@@ -1002,7 +1001,7 @@ protected function compileWheres()
1002
1001
}
1003
1002
1004
1003
/**
1005
- * @param array $where
1004
+ * @param array $where
1006
1005
* @return array
1007
1006
*/
1008
1007
protected function compileWhereAll (array $ where )
@@ -1013,7 +1012,7 @@ protected function compileWhereAll(array $where)
1013
1012
}
1014
1013
1015
1014
/**
1016
- * @param array $where
1015
+ * @param array $where
1017
1016
* @return array
1018
1017
*/
1019
1018
protected function compileWhereBasic (array $ where )
@@ -1069,7 +1068,7 @@ protected function compileWhereBasic(array $where)
1069
1068
}
1070
1069
1071
1070
/**
1072
- * @param array $where
1071
+ * @param array $where
1073
1072
* @return mixed
1074
1073
*/
1075
1074
protected function compileWhereNested (array $ where )
@@ -1080,7 +1079,7 @@ protected function compileWhereNested(array $where)
1080
1079
}
1081
1080
1082
1081
/**
1083
- * @param array $where
1082
+ * @param array $where
1084
1083
* @return array
1085
1084
*/
1086
1085
protected function compileWhereIn (array $ where )
@@ -1091,7 +1090,7 @@ protected function compileWhereIn(array $where)
1091
1090
}
1092
1091
1093
1092
/**
1094
- * @param array $where
1093
+ * @param array $where
1095
1094
* @return array
1096
1095
*/
1097
1096
protected function compileWhereNotIn (array $ where )
@@ -1102,7 +1101,7 @@ protected function compileWhereNotIn(array $where)
1102
1101
}
1103
1102
1104
1103
/**
1105
- * @param array $where
1104
+ * @param array $where
1106
1105
* @return array
1107
1106
*/
1108
1107
protected function compileWhereNull (array $ where )
@@ -1114,7 +1113,7 @@ protected function compileWhereNull(array $where)
1114
1113
}
1115
1114
1116
1115
/**
1117
- * @param array $where
1116
+ * @param array $where
1118
1117
* @return array
1119
1118
*/
1120
1119
protected function compileWhereNotNull (array $ where )
@@ -1126,7 +1125,7 @@ protected function compileWhereNotNull(array $where)
1126
1125
}
1127
1126
1128
1127
/**
1129
- * @param array $where
1128
+ * @param array $where
1130
1129
* @return array
1131
1130
*/
1132
1131
protected function compileWhereBetween (array $ where )
@@ -1159,7 +1158,7 @@ protected function compileWhereBetween(array $where)
1159
1158
}
1160
1159
1161
1160
/**
1162
- * @param array $where
1161
+ * @param array $where
1163
1162
* @return array
1164
1163
*/
1165
1164
protected function compileWhereDate (array $ where )
@@ -1171,7 +1170,7 @@ protected function compileWhereDate(array $where)
1171
1170
1172
1171
$ operator = $ this ->conversion [$ operator ];
1173
1172
1174
- return match ($ operator ) {
1173
+ return match ($ operator ) {
1175
1174
'= ' => [
1176
1175
$ column => [
1177
1176
'$gte ' => $ startOfDay ,
@@ -1208,7 +1207,7 @@ protected function compileWhereDate(array $where)
1208
1207
}
1209
1208
1210
1209
/**
1211
- * @param array $where
1210
+ * @param array $where
1212
1211
* @return array
1213
1212
*/
1214
1213
protected function compileWhereMonth (array $ where )
@@ -1222,7 +1221,7 @@ protected function compileWhereMonth(array $where)
1222
1221
'$expr ' => [
1223
1222
$ operator => [
1224
1223
[
1225
- '$month ' => '$ ' .$ column,
1224
+ '$month ' => '$ ' .$ column
1226
1225
],
1227
1226
$ value ,
1228
1227
],
@@ -1231,7 +1230,7 @@ protected function compileWhereMonth(array $where)
1231
1230
}
1232
1231
1233
1232
/**
1234
- * @param array $where
1233
+ * @param array $where
1235
1234
* @return array
1236
1235
*/
1237
1236
protected function compileWhereDay (array $ where )
@@ -1245,7 +1244,7 @@ protected function compileWhereDay(array $where)
1245
1244
'$expr ' => [
1246
1245
$ operator => [
1247
1246
[
1248
- '$dayOfMonth ' => '$ ' .$ column,
1247
+ '$dayOfMonth ' => '$ ' .$ column
1249
1248
],
1250
1249
$ value ,
1251
1250
],
@@ -1254,7 +1253,7 @@ protected function compileWhereDay(array $where)
1254
1253
}
1255
1254
1256
1255
/**
1257
- * @param array $where
1256
+ * @param array $where
1258
1257
* @return array
1259
1258
*/
1260
1259
protected function compileWhereYear (array $ where )
@@ -1267,16 +1266,16 @@ protected function compileWhereYear(array $where)
1267
1266
'$expr ' => [
1268
1267
$ operator => [
1269
1268
[
1270
- '$year ' => '$ ' .$ column,
1269
+ '$year ' => '$ ' .$ column
1271
1270
],
1272
- $ value,
1271
+ $ value
1273
1272
],
1274
1273
],
1275
1274
];
1276
1275
}
1277
1276
1278
1277
/**
1279
- * @param array $where
1278
+ * @param array $where
1280
1279
* @return array
1281
1280
*/
1282
1281
protected function compileWhereTime (array $ where )
@@ -1290,7 +1289,7 @@ protected function compileWhereTime(array $where)
1290
1289
}
1291
1290
1292
1291
/**
1293
- * @param array $where
1292
+ * @param array $where
1294
1293
* @return mixed
1295
1294
*/
1296
1295
protected function compileWhereRaw (array $ where )
@@ -1301,7 +1300,7 @@ protected function compileWhereRaw(array $where)
1301
1300
/**
1302
1301
* Set custom options for the query.
1303
1302
*
1304
- * @param array $options
1303
+ * @param array $options
1305
1304
* @return $this
1306
1305
*/
1307
1306
public function options (array $ options )
0 commit comments