public function setProtocol($protocol)
    {
        if (strlen($protocol) == 0) {
            throw new \InvalidArgumentException(sprintf('Cloud protocol should not be empty'));
        }

        $this->protocol = $protocol;

        return $this;
    }
public function setProtocol($protocol)
    {
        if (strlen($protocol) == 0) {
            throw new \InvalidArgumentException(sprintf('Cloud protocol should not be empty'));
        }

        $this->protocol = $protocol;

        return $this;
    }
public function setProtocol ( $ protocol ) { if ( strlen ( $ protocol ) == 0 ) { throw new \ InvalidArgumentException ( sprintf ( 'Cloud protocol should not be empty' ) ) ; } $ this -> protocol = $ protocol ; return $ this ; }
Sets protocol.

@param string $protocol

@return FeedCloud

@throws \InvalidArgumentException
Sets protocol .