public function addChannel(Channel $channel) { $this->channels[strtolower($channel->getName())] = $channel; }