public function setUri($uri)
    {
        if (!is_array($uri)) {
            $uri = parse_url($uri);
        }

        $this->uri = $uri;
        return $this;
    }
public function setUri($uri)
    {
        if (!is_array($uri)) {
            $uri = parse_url($uri);
        }

        $this->uri = $uri;
        return $this;
    }
public function setUri ( $ uri ) { if ( ! is_array ( $ uri ) ) { $ uri = parse_url ( $ uri ) ; } $ this -> uri = $ uri ; return $ this ; }
Sets the request URI
@param string|array $uri
@return $this
Sets the request URI