private function add(string $method, string $route, callable $callable)
	{
		$entry = (object)[
			'route' => $route,
			'pattern' => $this->createPattern($route),
			'callable' => $callable
		];

		if (!array_key_exists($method, $this->routes)) {
			$this->routes[$method] = [];
		}

		$this->routes[$method][] = $entry;
	}
private function add(string $method, string $route, callable $callable)
	{
		$entry = (object)[
			'route' => $route,
			'pattern' => $this->createPattern($route),
			'callable' => $callable
		];

		if (!array_key_exists($method, $this->routes)) {
			$this->routes[$method] = [];
		}

		$this->routes[$method][] = $entry;
	}
private function add ( string $ method , string $ route , callable $ callable ) { $ entry = ( object ) [ 'route' => $ route , 'pattern' => $ this -> createPattern ( $ route ) , 'callable' => $ callable ] ; if ( ! array_key_exists ( $ method , $ this -> routes ) ) { $ this -> routes [ $ method ] = [ ] ; } $ this -> routes [ $ method ] [ ] = $ entry ; }
Adds a method & route to the to the route map.

@param string $method
@param string $route
@param callable $callable
Adds a method & route to the to the route map .