public function setHandlerMethod($handlerMethod)
    {
        Assert::string($handlerMethod, 'The handler method must be a string. Got: %s');
        Assert::notEmpty($handlerMethod, 'The handler method must not be empty.');

        $this->handlerMethod = $handlerMethod;

        return $this;
    }
public function setHandlerMethod($handlerMethod)
    {
        Assert::string($handlerMethod, 'The handler method must be a string. Got: %s');
        Assert::notEmpty($handlerMethod, 'The handler method must not be empty.');

        $this->handlerMethod = $handlerMethod;

        return $this;
    }
public function setHandlerMethod ( $ handlerMethod ) { Assert :: string ( $ handlerMethod , 'The handler method must be a string. Got: %s' ) ; Assert :: notEmpty ( $ handlerMethod , 'The handler method must not be empty.' ) ; $ this -> handlerMethod = $ handlerMethod ; return $ this ; }
Sets the method of the command handler that should be executed when the
configured command is run.

The method receives three arguments:

* {@link Args} `$args`: The console arguments.
* {@link IO} `$io`: The I/O.
* {@link Command} `$command`: The executed command.

@param string $handlerMethod The method name.

@return ApplicationConfig|CommandConfig|SubCommandConfig|OptionCommandConfig The current instance.

@see getHandlerMethod()
Sets the method of the command handler that should be executed when the configured command is run .