public function addChannel(BaseChannelInterface $channel) { if (!$this->hasChannel($channel)) { $this->channels->add($channel); } }