setHandlerMethod() public method

The method receives three arguments: * {@link Args} $args: The console arguments. * {@link IO} $io: The I/O. * {@link Command} $command: The executed command.
See also: getHandlerMethod()
public setHandlerMethod ( string $handlerMethod ) : ApplicationConfig | CommandConfig | SubCommandConfig | OptionCommandConfig
$handlerMethod string The method name.
return ApplicationConfig | CommandConfig | SubCommandConfig | OptionCommandConfig The current instance.
Example #1
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testSetHandlerMethodFailsIfNoString()
 {
     $this->config->setHandlerMethod(1234);
 }