Webmozart\Console\Api\Config\Config::getHandlerMethod PHP Method

getHandlerMethod() public method

Returns the method of the command handler that should be executed when the configured command is run.
See also: setHandlerMethod()
public getHandlerMethod ( ) : string
return string The method name.
    public function getHandlerMethod()
    {
        if (!$this->handlerMethod) {
            return $this->getDefaultHandlerMethod();
        }
        return $this->handlerMethod;
    }

Usage Example

Example #1
0
 public function testDefaultHandlerMethod()
 {
     $this->assertSame('handle', $this->config->getHandlerMethod());
 }