Skip to content

Commit

Permalink
readd docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
liamduckett committed Jan 29, 2025
1 parent cfc3dc0 commit bbcc7ef
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ trait QueriesRelationships
* @param string $operator
* @param int $count
* @param string $boolean
* @param \Closure|null $callback
* @return $this
*
* @throws \RuntimeException
Expand Down Expand Up @@ -122,6 +123,7 @@ public function orHas($relation, $operator = '>=', $count = 1)
*
* @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
* @param string $boolean
* @param \Closure|null $callback
* @return $this
*/
public function doesntHave($relation, $boolean = 'and', ?Closure $callback = null)
Expand All @@ -145,6 +147,7 @@ public function orDoesntHave($relation)
*
* @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
* @param string $operator
* @param \Closure|null $callback
* @param int $count
* @return $this
*/
Expand All @@ -159,6 +162,7 @@ public function whereHas($relation, ?Closure $callback = null, $operator = '>=',
* Also load the relationship with same condition.
*
* @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
* @param \Closure|null $callback
* @param string $operator
* @param int $count
* @return $this
Expand All @@ -173,6 +177,7 @@ public function withWhereHas($relation, ?Closure $callback = null, $operator = '
* Add a relationship count / exists condition to the query with where clauses and an "or".
*
* @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
* @param \Closure|null $callback
* @param string $operator
* @param int $count
* @return $this
Expand All @@ -186,6 +191,7 @@ public function orWhereHas($relation, ?Closure $callback = null, $operator = '>=
* Add a relationship count / exists condition to the query with where clauses.
*
* @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
* @param \Closure|null $callback
* @return $this
*/
public function whereDoesntHave($relation, ?Closure $callback = null)
Expand All @@ -197,6 +203,7 @@ public function whereDoesntHave($relation, ?Closure $callback = null)
* Add a relationship count / exists condition to the query with where clauses and an "or".
*
* @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
* @param \Closure|null $callback
* @return $this
*/
public function orWhereDoesntHave($relation, ?Closure $callback = null)
Expand All @@ -212,6 +219,7 @@ public function orWhereDoesntHave($relation, ?Closure $callback = null)
* @param string $operator
* @param int $count
* @param string $boolean
* @param \Closure|null $callback
* @return $this
*/
public function hasMorph($relation, $types, $operator = '>=', $count = 1, $boolean = 'and', ?Closure $callback = null)
Expand Down Expand Up @@ -308,6 +316,7 @@ public function orHasMorph($relation, $types, $operator = '>=', $count = 1)
* @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
* @param string|array $types
* @param string $boolean
* @param \Closure|null $callback
* @return $this
*/
public function doesntHaveMorph($relation, $types, $boolean = 'and', ?Closure $callback = null)
Expand All @@ -332,6 +341,7 @@ public function orDoesntHaveMorph($relation, $types)
*
* @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
* @param string|array $types
* @param \Closure|null $callback
* @param string $operator
* @param int $count
* @return $this
Expand Down Expand Up @@ -372,6 +382,7 @@ public function whereDoesntHaveMorph($relation, $types, ?Closure $callback = nul
*
* @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
* @param string|array $types
* @param \Closure|null $callback
* @return $this
*/
public function orWhereDoesntHaveMorph($relation, $types, ?Closure $callback = null)
Expand Down Expand Up @@ -925,6 +936,11 @@ public function mergeConstraintsFrom(Builder $from)

/**
* Updates the table name for any columns with a new qualified name.
*
* @param array $wheres
* @param string $from
* @param string $to
* @return array
*/
protected function requalifyWhereTables(array $wheres, string $from, string $to): array
{
Expand All @@ -940,6 +956,7 @@ protected function requalifyWhereTables(array $wheres, string $from, string $to)
/**
* Add a sub-query count clause to this query.
*
* @param \Illuminate\Database\Query\Builder $query
* @param string $operator
* @param int $count
* @param string $boolean
Expand Down

0 comments on commit bbcc7ef

Please sign in to comment.