public function setPort($port = null)
    {
        if (null !== $port) {
            $this->port = (int) $port;
        }

        return $this;
    }
public function setPort($port = null)
    {
        if (null !== $port) {
            $this->port = (int) $port;
        }

        return $this;
    }
public function setPort ( $ port = null ) { if ( null !== $ port ) { $ this -> port = ( int ) $ port ; } return $ this ; }
Set the port of the connection.

@param int $port

@return Client
Set the port of the connection .