public function setPort($port)
    {
        if (intval($port) <= 0) {
            throw new \InvalidArgumentException(sprintf('Invalid port: %d', $port));
        }

        $this->port = intval($port);

        return $this;
    }
public function setPort($port)
    {
        if (intval($port) <= 0) {
            throw new \InvalidArgumentException(sprintf('Invalid port: %d', $port));
        }

        $this->port = intval($port);

        return $this;
    }
public function setPort ( $ port ) { if ( intval ( $ port ) <= 0 ) { throw new \ InvalidArgumentException ( sprintf ( 'Invalid port: %d' , $ port ) ) ; } $ this -> port = intval ( $ port ) ; return $ this ; }
Sets port.

@param integer $port

@return FeedCloud

@throws \InvalidArgumentException
Sets port .