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);
    }
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);
    }
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 ) ; }
Set a channel

@param string $channel
@param string $feed

@throws LogicException
Set a channel