original_string: public function setPort($port)
  	{
  		//Use the provided port or use the default
  		$port = (int) $port;
  
  		if ($port <= 0)
  		{
  			throw new Apache_Solr_InvalidArgumentException('Port is not a valid port number');
  		}
  		else
  		{
  			$this->_port = $port;
  		}
  
  		if ($this->_urlsInited)
  		{
  			$this->_initUrls();
  		}
  	}
code: public function setPort($port)
  	{
  		//Use the provided port or use the default
  		$port = (int) $port;
  
  		if ($port <= 0)
  		{
  			throw new Apache_Solr_InvalidArgumentException('Port is not a valid port number');
  		}
  		else
  		{
  			$this->_port = $port;
  		}
  
  		if ($this->_urlsInited)
  		{
  			$this->_initUrls();
  		}
  	}
code_tokens: public function setPort ( $ port ) { //Use the provided port or use the default $ port = ( int ) $ port ; if ( $ port <= 0 ) { throw new Apache_Solr_InvalidArgumentException ( 'Port is not a valid port number' ) ; } else { $ this -> _port = $ port ; } if ( $ this -> _urlsInited ) { $ this -> _initUrls ( ) ; } }
docstring: Set the port used. If empty will fallback to constants
  
  @param integer $port
  
  @throws Apache_Solr_InvalidArgumentException If the port parameter is empty
docstring_tokens: Set the port used . If empty will fallback to constants