public function removeChannel(BaseChannelInterface $channel) { if ($this->hasChannel($channel)) { $this->channels->removeElement($channel); } }