public function setRoute($routeName, $routeParams = [])
    {
        $this->routeName = $routeName;
        $this->routeParams = $routeParams;
        $this->routeGenerated = null;

        return $this;
    }
public function setRoute($routeName, $routeParams = [])
    {
        $this->routeName = $routeName;
        $this->routeParams = $routeParams;
        $this->routeGenerated = null;

        return $this;
    }
public function setRoute ( $ routeName , $ routeParams = [ ] ) { $ this -> routeName = $ routeName ; $ this -> routeParams = $ routeParams ; $ this -> routeGenerated = null ; return $ this ; }
Set the uri to be generated with given route name and params.

@param string $routeName
@param array  $routeParams

@return MenuEntry
Set the uri to be generated with given route name and params .