public function getUrl()
    {
        if (!in_array($this->getMethod(), array(RequestInterface::METHOD_GET, RequestInterface::METHOD_HEAD))) {
            return $this->url;
        }

        $url = $this->url;

        if (count($this->data)) {

            $url .= false === strpos($url, '?') ? '?' : '&';
            $url .= http_build_query($this->data);
        }

        return $url;
    }
public function getUrl()
    {
        if (!in_array($this->getMethod(), array(RequestInterface::METHOD_GET, RequestInterface::METHOD_HEAD))) {
            return $this->url;
        }

        $url = $this->url;

        if (count($this->data)) {

            $url .= false === strpos($url, '?') ? '?' : '&';
            $url .= http_build_query($this->data);
        }

        return $url;
    }
public function getUrl ( ) { if ( ! in_array ( $ this -> getMethod ( ) , array ( RequestInterface :: METHOD_GET , RequestInterface :: METHOD_HEAD ) ) ) { return $ this -> url ; } $ url = $ this -> url ; if ( count ( $ this -> data ) ) { $ url .= false === strpos ( $ url , '?' ) ? '?' : '&' ; $ url .= http_build_query ( $ this -> data ) ; } return $ url ; }
Get request URL
- Assembles query string for GET
and HEAD requests

@access public
@return string
Get request URL - Assembles query string for GET and HEAD requests