Skip to content

Commit 28e67ef

Browse files
committed
readd docblocks
1 parent cfc3dc0 commit 28e67ef

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ trait QueriesRelationships
2828
* @param string $operator
2929
* @param int $count
3030
* @param string $boolean
31+
* @param \Closure|null $callback
3132
* @return $this
3233
*
3334
* @throws \RuntimeException
@@ -122,6 +123,7 @@ public function orHas($relation, $operator = '>=', $count = 1)
122123
*
123124
* @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
124125
* @param string $boolean
126+
* @param \Closure|null $callback
125127
* @return $this
126128
*/
127129
public function doesntHave($relation, $boolean = 'and', ?Closure $callback = null)
@@ -144,6 +146,7 @@ public function orDoesntHave($relation)
144146
* Add a relationship count / exists condition to the query with where clauses.
145147
*
146148
* @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
149+
* @param \Closure|null $callback
147150
* @param string $operator
148151
* @param int $count
149152
* @return $this
@@ -159,6 +162,7 @@ public function whereHas($relation, ?Closure $callback = null, $operator = '>=',
159162
* Also load the relationship with same condition.
160163
*
161164
* @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
165+
* @param \Closure|null $callback
162166
* @param string $operator
163167
* @param int $count
164168
* @return $this
@@ -173,6 +177,7 @@ public function withWhereHas($relation, ?Closure $callback = null, $operator = '
173177
* Add a relationship count / exists condition to the query with where clauses and an "or".
174178
*
175179
* @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
180+
* @param \Closure|null $callback
176181
* @param string $operator
177182
* @param int $count
178183
* @return $this
@@ -186,6 +191,7 @@ public function orWhereHas($relation, ?Closure $callback = null, $operator = '>=
186191
* Add a relationship count / exists condition to the query with where clauses.
187192
*
188193
* @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
194+
* @param \Closure|null $callback
189195
* @return $this
190196
*/
191197
public function whereDoesntHave($relation, ?Closure $callback = null)
@@ -197,6 +203,7 @@ public function whereDoesntHave($relation, ?Closure $callback = null)
197203
* Add a relationship count / exists condition to the query with where clauses and an "or".
198204
*
199205
* @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
206+
* @param \Closure|null $callback
200207
* @return $this
201208
*/
202209
public function orWhereDoesntHave($relation, ?Closure $callback = null)
@@ -212,6 +219,7 @@ public function orWhereDoesntHave($relation, ?Closure $callback = null)
212219
* @param string $operator
213220
* @param int $count
214221
* @param string $boolean
222+
* @param \Closure|null $callback
215223
* @return $this
216224
*/
217225
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)
308316
* @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
309317
* @param string|array $types
310318
* @param string $boolean
319+
* @param \Closure|null $callback
311320
* @return $this
312321
*/
313322
public function doesntHaveMorph($relation, $types, $boolean = 'and', ?Closure $callback = null)
@@ -332,6 +341,7 @@ public function orDoesntHaveMorph($relation, $types)
332341
*
333342
* @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
334343
* @param string|array $types
344+
* @param \Closure|null $callback
335345
* @param string $operator
336346
* @param int $count
337347
* @return $this
@@ -346,6 +356,7 @@ public function whereHasMorph($relation, $types, ?Closure $callback = null, $ope
346356
*
347357
* @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
348358
* @param string|array $types
359+
* @param \Closure|null $callback
349360
* @param string $operator
350361
* @param int $count
351362
* @return $this
@@ -372,6 +383,7 @@ public function whereDoesntHaveMorph($relation, $types, ?Closure $callback = nul
372383
*
373384
* @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
374385
* @param string|array $types
386+
* @param \Closure|null $callback
375387
* @return $this
376388
*/
377389
public function orWhereDoesntHaveMorph($relation, $types, ?Closure $callback = null)
@@ -925,6 +937,11 @@ public function mergeConstraintsFrom(Builder $from)
925937

926938
/**
927939
* 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
928945
*/
929946
protected function requalifyWhereTables(array $wheres, string $from, string $to): array
930947
{
@@ -940,6 +957,7 @@ protected function requalifyWhereTables(array $wheres, string $from, string $to)
940957
/**
941958
* Add a sub-query count clause to this query.
942959
*
960+
* @param \Illuminate\Database\Query\Builder $query
943961
* @param string $operator
944962
* @param int $count
945963
* @param string $boolean

0 commit comments

Comments
 (0)