/** * {@inheritdoc} */ public function isEnabled(SignalInterface $signal) : bool { $signo = $signal->getSignal(); return isset($this->signals[$signo]) && $this->signals[$signo]->contains($signal); }
/** * {@inheritdoc} */ public function reference(SignalInterface $signal) { $signo = $signal->getSignal(); if ($this->signals[$signo]->contains($signal)) { $this->referenced->attach($signal); } }