Пример #1
0
 /**
  * @inheritdoc
  */
 public function removeAlert(AlertInterface $alert)
 {
     if ($this->alerts->contains($alert)) {
         $this->alerts->removeElement($alert);
         $alert->removeChangeType($this);
     }
 }
Пример #2
0
 /**
  * @param AlertInterface $alert
  */
 public function removeAlert(AlertInterface $alert)
 {
     $this->alerts->removeElement($alert);
     $alert->removeInstigator($this);
 }