public function get($method, $route)
	{
		if (!array_key_exists($method, $this->routes)) {
			return null;
		}

		foreach ($this->routes[$method] as $key => $entry) {
			if ($entry->route == $route) {
				return $entry->callable;
			}
		}

		return null;
	}
public function get($method, $route)
	{
		if (!array_key_exists($method, $this->routes)) {
			return null;
		}

		foreach ($this->routes[$method] as $key => $entry) {
			if ($entry->route == $route) {
				return $entry->callable;
			}
		}

		return null;
	}
public function get ( $ method , $ route ) { if ( ! array_key_exists ( $ method , $ this -> routes ) ) { return null ; } foreach ( $ this -> routes [ $ method ] as $ key => $ entry ) { if ( $ entry -> route == $ route ) { return $ entry -> callable ; } } return null ; }
Returns the callable to which the specified route is mapped, or null if the router map contains no mapping for the route.

@param string $method
@param string $route
@return callable the callable to which the specified route is mapped, or null if the router map contains no mapping for the route.
Returns the callable to which the specified route is mapped or null if the router map contains no mapping for the route .