public function retrieve($httpMethod, $uri)
    {
        $route = array($httpMethod, $uri);

        $routes = array_map(function ($route) {
            return array($route[0], $route[1]);
        }, $this->routes);

        $key = array_search($route, $routes);

        return $key !== false ? $this->routes[$key] : null;
    }