public function inflect($command, $commandHandler)
    {
        $commandName = get_class($command);

        $start = strpos($commandName, '\\') !== false ? strrpos($commandName, '\\') + 1 : 0;
        $length = strpos($commandName, $this->suffix, -$this->suffixLength) !== false ? $this->suffixLength : null;

        return lcfirst($length ? substr($commandName, $start, -$length) : substr($commandName, $start));
    }
public function inflect($command, $commandHandler)
    {
        $commandName = get_class($command);

        $start = strpos($commandName, '\\') !== false ? strrpos($commandName, '\\') + 1 : 0;
        $length = strpos($commandName, $this->suffix, -$this->suffixLength) !== false ? $this->suffixLength : null;

        return lcfirst($length ? substr($commandName, $start, -$length) : substr($commandName, $start));
    }
public function inflect ( $ command , $ commandHandler ) { $ commandName = get_class ( $ command ) ; $ start = strpos ( $ commandName , '\\' ) !== false ? strrpos ( $ commandName , '\\' ) + 1 : 0 ; $ length = strpos ( $ commandName , $ this -> suffix , - $ this -> suffixLength ) !== false ? $ this -> suffixLength : null ; return lcfirst ( $ length ? substr ( $ commandName , $ start , - $ length ) : substr ( $ commandName , $ start ) ) ; }
Return the method name to call on the command handler and return it.

Examples:
- \CompleteTaskCommand     => $handler->completeTask()
- \My\App\DoThingCommand   => $handler->doThing()

@param object $command
@param object $commandHandler

@return string
Return the method name to call on the command handler and return it .