Example #1
0
 /**
  * @inheritdoc
  */
 public function removeAlert(AlertInterface $alert)
 {
     if ($this->alerts->contains($alert)) {
         $this->alerts->removeElement($alert);
         $alert->removeChangeType($this);
     }
 }
Example #2
0
 /**
  * @param AlertInterface $alert
  */
 public function addAlert(AlertInterface $alert)
 {
     $this->alerts->add($alert);
 }
Example #3
0
 /**
  * @param AlertInterface $alert
  */
 public function removeAlert(AlertInterface $alert)
 {
     $this->alerts->removeElement($alert);
     $alert->removeInstigator($this);
 }