This commit is contained in:
2022-10-18 14:37:33 +02:00
parent 8928664f87
commit 9eb451e359
15 changed files with 79 additions and 76 deletions

View File

@@ -230,7 +230,6 @@ class SocialAction
/**
* @param Collection|SocialAction[] $socialActions
* @return Collection
*/
public static function getDescendantsWithThisForActions($socialActions): Collection
{
@@ -291,16 +290,16 @@ class SocialAction
return $this->title;
}
public function hasParent(): bool
{
return $this->getParent() instanceof self;
}
public function hasChildren(): bool
{
return 0 < $this->getChildren()->count();
}
public function hasParent(): bool
{
return $this->getParent() instanceof self;
}
/**
* Recursive method which return true if the current $action
* is a descendant of the $action given in parameter.

View File

@@ -73,7 +73,9 @@ class SocialIssue
/**
* @internal use @see{SocialIssue::setParent} instead
*
* @param SocialIssue $child
*
* @return $this
*/
public function addChild(self $child): self
@@ -221,7 +223,6 @@ class SocialIssue
/**
* @param array|SocialIssue[] $socialIssues
* @return Collection
*/
public static function getDescendantsWithThisForIssues(array $socialIssues): Collection
{
@@ -283,16 +284,16 @@ class SocialIssue
return $this->title;
}
public function hasParent(): bool
{
return null !== $this->parent;
}
public function hasChildren(): bool
{
return 0 < $this->getChildren()->count();
}
public function hasParent(): bool
{
return null !== $this->parent;
}
/**
* Recursive method which return true if the current $issue is a descendant
* of the $issue given in parameter.