public final function setUrl($url)
    {
        if (is_string($url)) {

            $this->_url = new ehough_curly_Url($url);

            return;
        }

        if (! $url instanceof ehough_curly_Url) {

            throw new ehough_shortstop_api_exception_InvalidArgumentException(
                'setUrl() only takes a string or a ehough_curly_Url instance'
            );
        }

        $this->_url = $url;
    }
public final function setUrl($url)
    {
        if (is_string($url)) {

            $this->_url = new ehough_curly_Url($url);

            return;
        }

        if (! $url instanceof ehough_curly_Url) {

            throw new ehough_shortstop_api_exception_InvalidArgumentException(
                'setUrl() only takes a string or a ehough_curly_Url instance'
            );
        }

        $this->_url = $url;
    }
public final function setUrl ( $ url ) { if ( is_string ( $ url ) ) { $ this -> _url = new ehough_curly_Url ( $ url ) ; return ; } if ( ! $ url instanceof ehough_curly_Url ) { throw new ehough_shortstop_api_exception_InvalidArgumentException ( 'setUrl() only takes a string or a ehough_curly_Url instance' ) ; } $ this -> _url = $ url ; }
Sets the URL of this request.

@param mixed $url The URL of this request.

@throws ehough_shortstop_api_exception_InvalidArgumentException If the given URL is not a valid string URL
or instance of ehough_curly_Url

@return void
Sets the URL of this request .