示例#1
0
 /**
  * @inheritdoc
  */
 public function removeAlert(AlertInterface $alert)
 {
     if ($this->alerts->contains($alert)) {
         $this->alerts->removeElement($alert);
         $alert->removeChangeType($this);
     }
 }
示例#2
0
文件: School.php 项目: profcab/ilios
 /**
  * @param AlertInterface $alert
  */
 public function addAlert(AlertInterface $alert)
 {
     $this->alerts->add($alert);
 }
示例#3
0
文件: User.php 项目: stopfstedt/ilios
 /**
  * @param AlertInterface $alert
  */
 public function removeAlert(AlertInterface $alert)
 {
     $this->alerts->removeElement($alert);
     $alert->removeInstigator($this);
 }