@@ -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,7 +153,7 @@ public function project($columns)
153
153
154
154
/**
155
155
* Set the cursor timeout in seconds.
156
- * @param int $seconds
156
+ * @param int $seconds
157
157
* @return $this
158
158
*/
159
159
public function timeout ($ seconds )
@@ -166,7 +166,7 @@ public function timeout($seconds)
166
166
/**
167
167
* Set the cursor hint.
168
168
*
169
- * @param mixed $index
169
+ * @param mixed $index
170
170
* @return $this
171
171
*/
172
172
public function hint ($ index )
@@ -217,8 +217,8 @@ public function cursor($columns = [])
217
217
/**
218
218
* Execute the query as a fresh "select" statement.
219
219
*
220
- * @param array $columns
221
- * @param bool $returnLazy
220
+ * @param array $columns
221
+ * @param bool $returnLazy
222
222
* @return array|static[]|Collection|LazyCollection
223
223
*/
224
224
public function getFresh ($ columns = [], $ returnLazy = false )
@@ -522,10 +522,10 @@ public function orderBy($column, $direction = 'asc')
522
522
/**
523
523
* Add a "where all" clause to the query.
524
524
*
525
- * @param string $column
526
- * @param array $values
527
- * @param string $boolean
528
- * @param bool $not
525
+ * @param string $column
526
+ * @param array $values
527
+ * @param string $boolean
528
+ * @param bool $not
529
529
* @return $this
530
530
*/
531
531
public function whereAll ($ column , array $ values , $ boolean = 'and ' , $ not = false )
@@ -729,8 +729,8 @@ public function truncate(): bool
729
729
/**
730
730
* Get an array with the values of a given column.
731
731
*
732
- * @param string $column
733
- * @param string $key
732
+ * @param string $column
733
+ * @param string $key
734
734
* @return array
735
735
* @deprecated
736
736
*/
@@ -761,9 +761,9 @@ public function raw($expression = null)
761
761
/**
762
762
* Append one or more values to an array.
763
763
*
764
- * @param mixed $column
765
- * @param mixed $value
766
- * @param bool $unique
764
+ * @param mixed $column
765
+ * @param mixed $value
766
+ * @param bool $unique
767
767
* @return int
768
768
*/
769
769
public function push ($ column , $ value = null , $ unique = false )
@@ -788,8 +788,8 @@ public function push($column, $value = null, $unique = false)
788
788
/**
789
789
* Remove one or more values from an array.
790
790
*
791
- * @param mixed $column
792
- * @param mixed $value
791
+ * @param mixed $column
792
+ * @param mixed $value
793
793
* @return int
794
794
*/
795
795
public function pull ($ column , $ value = null )
@@ -812,7 +812,7 @@ public function pull($column, $value = null)
812
812
/**
813
813
* Remove one or more fields.
814
814
*
815
- * @param mixed $columns
815
+ * @param mixed $columns
816
816
* @return int
817
817
*/
818
818
public function drop ($ columns )
@@ -843,8 +843,8 @@ public function newQuery()
843
843
/**
844
844
* Perform an update query.
845
845
*
846
- * @param array $query
847
- * @param array $options
846
+ * @param array $query
847
+ * @param array $options
848
848
* @return int
849
849
*/
850
850
protected function performUpdate ($ query , array $ options = [])
@@ -866,7 +866,7 @@ protected function performUpdate($query, array $options = [])
866
866
/**
867
867
* Convert a key to ObjectID if needed.
868
868
*
869
- * @param mixed $id
869
+ * @param mixed $id
870
870
* @return mixed
871
871
*/
872
872
public function convertKey ($ id )
@@ -1000,7 +1000,7 @@ protected function compileWheres()
1000
1000
}
1001
1001
1002
1002
/**
1003
- * @param array $where
1003
+ * @param array $where
1004
1004
* @return array
1005
1005
*/
1006
1006
protected function compileWhereAll (array $ where )
@@ -1011,7 +1011,7 @@ protected function compileWhereAll(array $where)
1011
1011
}
1012
1012
1013
1013
/**
1014
- * @param array $where
1014
+ * @param array $where
1015
1015
* @return array
1016
1016
*/
1017
1017
protected function compileWhereBasic (array $ where )
@@ -1067,7 +1067,7 @@ protected function compileWhereBasic(array $where)
1067
1067
}
1068
1068
1069
1069
/**
1070
- * @param array $where
1070
+ * @param array $where
1071
1071
* @return mixed
1072
1072
*/
1073
1073
protected function compileWhereNested (array $ where )
@@ -1078,7 +1078,7 @@ protected function compileWhereNested(array $where)
1078
1078
}
1079
1079
1080
1080
/**
1081
- * @param array $where
1081
+ * @param array $where
1082
1082
* @return array
1083
1083
*/
1084
1084
protected function compileWhereIn (array $ where )
@@ -1089,7 +1089,7 @@ protected function compileWhereIn(array $where)
1089
1089
}
1090
1090
1091
1091
/**
1092
- * @param array $where
1092
+ * @param array $where
1093
1093
* @return array
1094
1094
*/
1095
1095
protected function compileWhereNotIn (array $ where )
@@ -1100,7 +1100,7 @@ protected function compileWhereNotIn(array $where)
1100
1100
}
1101
1101
1102
1102
/**
1103
- * @param array $where
1103
+ * @param array $where
1104
1104
* @return array
1105
1105
*/
1106
1106
protected function compileWhereNull (array $ where )
@@ -1112,7 +1112,7 @@ protected function compileWhereNull(array $where)
1112
1112
}
1113
1113
1114
1114
/**
1115
- * @param array $where
1115
+ * @param array $where
1116
1116
* @return array
1117
1117
*/
1118
1118
protected function compileWhereNotNull (array $ where )
@@ -1124,7 +1124,7 @@ protected function compileWhereNotNull(array $where)
1124
1124
}
1125
1125
1126
1126
/**
1127
- * @param array $where
1127
+ * @param array $where
1128
1128
* @return array
1129
1129
*/
1130
1130
protected function compileWhereBetween (array $ where )
@@ -1157,7 +1157,7 @@ protected function compileWhereBetween(array $where)
1157
1157
}
1158
1158
1159
1159
/**
1160
- * @param array $where
1160
+ * @param array $where
1161
1161
* @return array
1162
1162
*/
1163
1163
protected function compileWhereDate (array $ where )
@@ -1169,7 +1169,7 @@ protected function compileWhereDate(array $where)
1169
1169
1170
1170
$ operator = $ this ->conversion [$ operator ];
1171
1171
1172
- return match ($ operator ) {
1172
+ return match ($ operator ) {
1173
1173
'= ' => [
1174
1174
$ column => [
1175
1175
'$gte ' => $ startOfDay ,
@@ -1206,7 +1206,7 @@ protected function compileWhereDate(array $where)
1206
1206
}
1207
1207
1208
1208
/**
1209
- * @param array $where
1209
+ * @param array $where
1210
1210
* @return array
1211
1211
*/
1212
1212
protected function compileWhereMonth (array $ where )
@@ -1220,7 +1220,7 @@ protected function compileWhereMonth(array $where)
1220
1220
'$expr ' => [
1221
1221
$ operator => [
1222
1222
[
1223
- '$month ' => '$ ' .$ column
1223
+ '$month ' => '$ ' .$ column,
1224
1224
],
1225
1225
$ value ,
1226
1226
],
@@ -1229,7 +1229,7 @@ protected function compileWhereMonth(array $where)
1229
1229
}
1230
1230
1231
1231
/**
1232
- * @param array $where
1232
+ * @param array $where
1233
1233
* @return array
1234
1234
*/
1235
1235
protected function compileWhereDay (array $ where )
@@ -1243,7 +1243,7 @@ protected function compileWhereDay(array $where)
1243
1243
'$expr ' => [
1244
1244
$ operator => [
1245
1245
[
1246
- '$dayOfMonth ' => '$ ' .$ column
1246
+ '$dayOfMonth ' => '$ ' .$ column,
1247
1247
],
1248
1248
$ value ,
1249
1249
],
@@ -1252,7 +1252,7 @@ protected function compileWhereDay(array $where)
1252
1252
}
1253
1253
1254
1254
/**
1255
- * @param array $where
1255
+ * @param array $where
1256
1256
* @return array
1257
1257
*/
1258
1258
protected function compileWhereYear (array $ where )
@@ -1265,16 +1265,16 @@ protected function compileWhereYear(array $where)
1265
1265
'$expr ' => [
1266
1266
$ operator => [
1267
1267
[
1268
- '$year ' => '$ ' .$ column
1268
+ '$year ' => '$ ' .$ column,
1269
1269
],
1270
- $ value
1270
+ $ value,
1271
1271
],
1272
1272
],
1273
1273
];
1274
1274
}
1275
1275
1276
1276
/**
1277
- * @param array $where
1277
+ * @param array $where
1278
1278
* @return array
1279
1279
*/
1280
1280
protected function compileWhereTime (array $ where )
@@ -1288,7 +1288,7 @@ protected function compileWhereTime(array $where)
1288
1288
}
1289
1289
1290
1290
/**
1291
- * @param array $where
1291
+ * @param array $where
1292
1292
* @return mixed
1293
1293
*/
1294
1294
protected function compileWhereRaw (array $ where )
@@ -1299,7 +1299,7 @@ protected function compileWhereRaw(array $where)
1299
1299
/**
1300
1300
* Set custom options for the query.
1301
1301
*
1302
- * @param array $options
1302
+ * @param array $options
1303
1303
* @return $this
1304
1304
*/
1305
1305
public function options (array $ options )
0 commit comments