@@ -28,6 +28,7 @@ trait QueriesRelationships
28
28
* @param string $operator
29
29
* @param int $count
30
30
* @param string $boolean
31
+ * @param \Closure|null $callback
31
32
* @return $this
32
33
*
33
34
* @throws \RuntimeException
@@ -122,6 +123,7 @@ public function orHas($relation, $operator = '>=', $count = 1)
122
123
*
123
124
* @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
124
125
* @param string $boolean
126
+ * @param \Closure|null $callback
125
127
* @return $this
126
128
*/
127
129
public function doesntHave ($ relation , $ boolean = 'and ' , ?Closure $ callback = null )
@@ -144,6 +146,7 @@ public function orDoesntHave($relation)
144
146
* Add a relationship count / exists condition to the query with where clauses.
145
147
*
146
148
* @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
149
+ * @param \Closure|null $callback
147
150
* @param string $operator
148
151
* @param int $count
149
152
* @return $this
@@ -159,6 +162,7 @@ public function whereHas($relation, ?Closure $callback = null, $operator = '>=',
159
162
* Also load the relationship with same condition.
160
163
*
161
164
* @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
165
+ * @param \Closure|null $callback
162
166
* @param string $operator
163
167
* @param int $count
164
168
* @return $this
@@ -173,6 +177,7 @@ public function withWhereHas($relation, ?Closure $callback = null, $operator = '
173
177
* Add a relationship count / exists condition to the query with where clauses and an "or".
174
178
*
175
179
* @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
180
+ * @param \Closure|null $callback
176
181
* @param string $operator
177
182
* @param int $count
178
183
* @return $this
@@ -186,6 +191,7 @@ public function orWhereHas($relation, ?Closure $callback = null, $operator = '>=
186
191
* Add a relationship count / exists condition to the query with where clauses.
187
192
*
188
193
* @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
194
+ * @param \Closure|null $callback
189
195
* @return $this
190
196
*/
191
197
public function whereDoesntHave ($ relation , ?Closure $ callback = null )
@@ -197,6 +203,7 @@ public function whereDoesntHave($relation, ?Closure $callback = null)
197
203
* Add a relationship count / exists condition to the query with where clauses and an "or".
198
204
*
199
205
* @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
206
+ * @param \Closure|null $callback
200
207
* @return $this
201
208
*/
202
209
public function orWhereDoesntHave ($ relation , ?Closure $ callback = null )
@@ -212,6 +219,7 @@ public function orWhereDoesntHave($relation, ?Closure $callback = null)
212
219
* @param string $operator
213
220
* @param int $count
214
221
* @param string $boolean
222
+ * @param \Closure|null $callback
215
223
* @return $this
216
224
*/
217
225
public function hasMorph ($ relation , $ types , $ operator = '>= ' , $ count = 1 , $ boolean = 'and ' , ?Closure $ callback = null )
@@ -308,6 +316,7 @@ public function orHasMorph($relation, $types, $operator = '>=', $count = 1)
308
316
* @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
309
317
* @param string|array $types
310
318
* @param string $boolean
319
+ * @param \Closure|null $callback
311
320
* @return $this
312
321
*/
313
322
public function doesntHaveMorph ($ relation , $ types , $ boolean = 'and ' , ?Closure $ callback = null )
@@ -332,6 +341,7 @@ public function orDoesntHaveMorph($relation, $types)
332
341
*
333
342
* @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
334
343
* @param string|array $types
344
+ * @param \Closure|null $callback
335
345
* @param string $operator
336
346
* @param int $count
337
347
* @return $this
@@ -346,6 +356,7 @@ public function whereHasMorph($relation, $types, ?Closure $callback = null, $ope
346
356
*
347
357
* @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
348
358
* @param string|array $types
359
+ * @param \Closure|null $callback
349
360
* @param string $operator
350
361
* @param int $count
351
362
* @return $this
@@ -372,6 +383,7 @@ public function whereDoesntHaveMorph($relation, $types, ?Closure $callback = nul
372
383
*
373
384
* @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
374
385
* @param string|array $types
386
+ * @param \Closure|null $callback
375
387
* @return $this
376
388
*/
377
389
public function orWhereDoesntHaveMorph ($ relation , $ types , ?Closure $ callback = null )
@@ -925,6 +937,11 @@ public function mergeConstraintsFrom(Builder $from)
925
937
926
938
/**
927
939
* Updates the table name for any columns with a new qualified name.
940
+ *
941
+ * @param array $wheres
942
+ * @param string $from
943
+ * @param string $to
944
+ * @return array
928
945
*/
929
946
protected function requalifyWhereTables (array $ wheres , string $ from , string $ to ): array
930
947
{
@@ -940,6 +957,7 @@ protected function requalifyWhereTables(array $wheres, string $from, string $to)
940
957
/**
941
958
* Add a sub-query count clause to this query.
942
959
*
960
+ * @param \Illuminate\Database\Query\Builder $query
943
961
* @param string $operator
944
962
* @param int $count
945
963
* @param string $boolean
0 commit comments