Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Aug 27, 2024
1 parent 34e893c commit 2b39ec9
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/Eloquent/Relations/Ancestors.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

/**
* @template TRelatedModel of \Illuminate\Database\Eloquent\Model
*
* @extends HasMany<TRelatedModel>
*/
class Ancestors extends HasMany implements ConcatenableRelation
Expand Down
1 change: 1 addition & 0 deletions src/Eloquent/Relations/BelongsToManyOfDescendants.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

/**
* @template TRelatedModel of \Illuminate\Database\Eloquent\Model
*
* @extends BelongsToMany<TRelatedModel>
*/
class BelongsToManyOfDescendants extends BelongsToMany
Expand Down
1 change: 1 addition & 0 deletions src/Eloquent/Relations/Bloodline.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

/**
* @template TRelatedModel of \Illuminate\Database\Eloquent\Model
*
* @extends Descendants<TRelatedModel>
*/
class Bloodline extends Descendants
Expand Down
1 change: 1 addition & 0 deletions src/Eloquent/Relations/Descendants.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

/**
* @template TRelatedModel of \Illuminate\Database\Eloquent\Model
*
* @extends HasMany<TRelatedModel>
*/
class Descendants extends HasMany implements ConcatenableRelation
Expand Down
1 change: 1 addition & 0 deletions src/Eloquent/Relations/Graph/Ancestors.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

/**
* @template TRelatedModel of \Illuminate\Database\Eloquent\Model
*
* @extends BelongsToMany<TRelatedModel>
*/
class Ancestors extends BelongsToMany implements ConcatenableRelation
Expand Down
1 change: 1 addition & 0 deletions src/Eloquent/Relations/Graph/Descendants.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

/**
* @template TRelatedModel of \Illuminate\Database\Eloquent\Model
*
* @extends BelongsToMany<TRelatedModel>
*/
class Descendants extends BelongsToMany implements ConcatenableRelation
Expand Down
1 change: 1 addition & 0 deletions src/Eloquent/Relations/HasManyOfDescendants.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

/**
* @template TRelatedModel of \Illuminate\Database\Eloquent\Model
*
* @extends HasMany<TRelatedModel>
*/
class HasManyOfDescendants extends HasMany
Expand Down
1 change: 1 addition & 0 deletions src/Eloquent/Relations/MorphToManyOfDescendants.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

/**
* @template TRelatedModel of \Illuminate\Database\Eloquent\Model
*
* @extends BelongsToManyOfDescendants<TRelatedModel>
*/
class MorphToManyOfDescendants extends BelongsToManyOfDescendants
Expand Down
1 change: 1 addition & 0 deletions src/Eloquent/Relations/RootAncestor.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

/**
* @template TRelatedModel of \Illuminate\Database\Eloquent\Model
*
* @extends HasOne<TRelatedModel>
*/
class RootAncestor extends HasOne
Expand Down
1 change: 1 addition & 0 deletions src/Eloquent/Relations/RootAncestorOrSelf.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

/**
* @template TRelatedModel of \Illuminate\Database\Eloquent\Model
*
* @extends RootAncestor<TRelatedModel>
*/
class RootAncestorOrSelf extends RootAncestor
Expand Down
1 change: 1 addition & 0 deletions src/Eloquent/Relations/Siblings.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

/**
* @template TRelatedModel of \Illuminate\Database\Eloquent\Model
*
* @extends HasMany<TRelatedModel>
*/
class Siblings extends HasMany
Expand Down
12 changes: 6 additions & 6 deletions src/Eloquent/Traits/HasAdjacencyList.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
use Staudenmeir\LaravelAdjacencyList\Eloquent\Relations\Siblings;

/**
* @property-read static|null $rootAncestor
* @property-read static $rootAncestorOrSelf
* @property-read static|null $parent
* @property-read Collection<int, static> $parentAndSelf
* @property-read Collection<int, static> $ancestors
* @property-read Collection<int, static> $ancestorsAndSelf
* @property-read Collection<int, static> $descendants
* @property-read Collection<int, static> $descendantsAndSelf
* @property-read Collection<int, static> $bloodline
* @property-read Collection<int, static> $children
* @property-read Collection<int, static> $childrenAndSelf
* @property-read Collection<int, static> $descendants
* @property-read Collection<int, static> $descendantsAndSelf
* @property-read static|null $parent
* @property-read Collection<int, static> $parentAndSelf
* @property-read static|null $rootAncestor
* @property-read static $rootAncestorOrSelf
* @property-read Collection<int, static> $siblings
* @property-read Collection<int, static> $siblingsAndSelf
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Eloquent/Traits/HasGraphAdjacencyList.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
/**
* @property-read Collection<int, static> $ancestors
* @property-read Collection<int, static> $ancestorsAndSelf
* @property-read Collection<int, static> $descendants
* @property-read Collection<int, static> $descendantsAndSelf
* @property-read Collection<int, static> $children
* @property-read Collection<int, static> $childrenAndSelf
* @property-read Collection<int, static> $descendants
* @property-read Collection<int, static> $descendantsAndSelf
* @property-read Collection<int, static> $parents
* @property-read Collection<int, static> $parentsAndSelf
*/
Expand Down

0 comments on commit 2b39ec9

Please sign in to comment.