private function setUri($uri)
    {
        $this->uri = $uri;

        preg_match_all('/({[^}]+})/', $this->uri, $matches);
        $this->params = $matches[0];

        return $this;
    }
private function setUri($uri)
    {
        $this->uri = $uri;

        preg_match_all('/({[^}]+})/', $this->uri, $matches);
        $this->params = $matches[0];

        return $this;
    }
private function setUri ( $ uri ) { $ this -> uri = $ uri ; preg_match_all ( '/({[^}]+})/' , $ this -> uri , $ matches ) ; $ this -> params = $ matches [ 0 ] ; return $ this ; }
Set the route URI.

@param  string  $uri

@return self
Set the route URI .