Webmozart\Console\Api\Config\Config::getHandlerMethod PHP Метод

getHandlerMethod() публичный Метод

Returns the method of the command handler that should be executed when the configured command is run.
См. также: setHandlerMethod()
public getHandlerMethod ( ) : string
Результат string The method name.
    public function getHandlerMethod()
    {
        if (!$this->handlerMethod) {
            return $this->getDefaultHandlerMethod();
        }
        return $this->handlerMethod;
    }

Usage Example

Пример #1
0
 public function testDefaultHandlerMethod()
 {
     $this->assertSame('handle', $this->config->getHandlerMethod());
 }