public function setFeed($channel, $feed) { if (!is_string($channel)) { throw new LogicException('You tried to add a invalid channel.'); } $this->feeds[$channel] = array(); $this->addFeed($channel, $feed); }