This commit is contained in:
2021-12-13 22:57:50 +01:00
parent f2fd30b690
commit f9dd1c5231
5 changed files with 80 additions and 64 deletions

View File

@@ -67,6 +67,15 @@ class Evaluation
$this->socialActions = new ArrayCollection();
}
public function addSocialAction(SocialAction $socialAction): self
{
if (!$this->socialActions->contains($socialAction)) {
$this->socialActions->add($socialAction);
}
return $this;
}
public function getDelay(): ?DateInterval
{
return $this->delay;
@@ -87,22 +96,6 @@ class Evaluation
return $this->title;
}
public function setDelay(DateInterval $delay): self
{
$this->delay = $delay;
return $this;
}
public function addSocialAction(SocialAction $socialAction): self
{
if (!$this->socialActions->contains($socialAction)) {
$this->socialActions->add($socialAction);
}
return $this;
}
public function removeSocialAction(SocialAction $socialAction): self
{
if ($this->socialActions->contains($socialAction)) {
@@ -112,6 +105,13 @@ class Evaluation
return $this;
}
public function setDelay(DateInterval $delay): self
{
$this->delay = $delay;
return $this;
}
public function setNotificationDelay(DateInterval $notificationDelay): self
{
$this->notificationDelay = $notificationDelay;