src/Builders/RouteBuilder.php
public function toMethod(string $controllerClassName, string $controllerMethodName): self
    {
        $this->action = new MethodRouteAction($controllerClassName, $controllerMethodName);

        return $this;
    }
public function toMethod(string $controllerClassName, string $controllerMethodName): self
    {
        $this->action = new MethodRouteAction($controllerClassName, $controllerMethodName);

        return $this;
    }
Binds the controller the route uses to be a method

@param string $controllerClassName The name of the class the route goes to
@param string $controllerMethodName The name of the method the route goes to
@return self For chaining