public function getRouteByName($name)
    {
        if (!isset($this->routes[$name])) {
            return null;
        }
        return $this->routes[$name];
    }
public function getRouteByName($name)
    {
        if (!isset($this->routes[$name])) {
            return null;
        }
        return $this->routes[$name];
    }
public function getRouteByName ( $ name ) { if ( ! isset ( $ this -> routes [ $ name ] ) ) { return null ; } return $ this -> routes [ $ name ] ; }
Return a route by its name.

@param string $name

@return \Parable\Routing\Route|null
Return a route by its name .