src/Router.php
public function add($name, RouteInterface $route)
    {
        $this->routes[(string) $name] = $route;

        return $this;
    }
public function add($name, RouteInterface $route)
    {
        $this->routes[(string) $name] = $route;

        return $this;
    }
public function add ( $ name , RouteInterface $ route ) { $ this -> routes [ ( string ) $ name ] = $ route ; return $ this ; }
Adds the route.

@param string         $name  The route name
@param RouteInterface $route The instance of route

@return self
Adds the route .