public function map(array $methods, string $pattern, $callable): MethodsInterface
    {
        // Check if method in allowed list
        $methods = $this->checkMethods($methods);

        // Set new route with parameters
        $this->set($methods, [$pattern, $callable]);

        return $this;
    }
public function map(array $methods, string $pattern, $callable): MethodsInterface
    {
        // Check if method in allowed list
        $methods = $this->checkMethods($methods);

        // Set new route with parameters
        $this->set($methods, [$pattern, $callable]);

        return $this;
    }
public function map ( array $ methods , string $ pattern , $ callable ) : MethodsInterface { // Check if method in allowed list $ methods = $ this -> checkMethods ( $ methods ) ; // Set new route with parameters $ this -> set ( $ methods , [ $ pattern , $ callable ] ) ; return $ this ; }
Callable must be only selected methods

@param   array $methods
@param   string $pattern
@param   callable|string $callable
@throws  Exception
@return  MethodsInterface
Callable must be only selected methods