/** * @inheritdoc */ public function addAlert(AlertInterface $alert) { if (!$this->alerts->contains($alert)) { $this->alerts->add($alert); $alert->addChangeType($this); } }
/** * @param AlertInterface $alert */ public function addAlert(AlertInterface $alert) { $this->alerts->add($alert); }
/** * @inheritdoc */ public function addAlert(AlertInterface $alert) { if (!$this->alerts->contains($alert)) { $this->alerts->add($alert); $alert->addRecipient($this); } }
/** * @param AlertInterface $alert */ public function addAlert(AlertInterface $alert) { if (!$this->alerts->contains($alert)) { $this->alerts->add($alert); $alert->addInstigator($this); } }