public function getCommand()
    {
        $options = $this->getOptions();
        $arguments = $this->getArguments();

        $to = null;
        $from = $arguments['from'];

        if (true === isset($arguments['to'])) {
            $to = $arguments['to'];
        }

        array_walk($options, function (&$option) {
            $option = '--' . $option;
        });

        array_walk($arguments, function (&$value, $argument) {
            $value = '--' . $argument . '=' . $value;
        });

        return trim(sprintf('%s %s %s', $this->getBaseCommand(), $this->getRange($from, $to), join(' ', $options)));
    }
public function getCommand()
    {
        $options = $this->getOptions();
        $arguments = $this->getArguments();

        $to = null;
        $from = $arguments['from'];

        if (true === isset($arguments['to'])) {
            $to = $arguments['to'];
        }

        array_walk($options, function (&$option) {
            $option = '--' . $option;
        });

        array_walk($arguments, function (&$value, $argument) {
            $value = '--' . $argument . '=' . $value;
        });

        return trim(sprintf('%s %s %s', $this->getBaseCommand(), $this->getRange($from, $to), join(' ', $options)));
    }
public function getCommand ( ) { $ options = $ this -> getOptions ( ) ; $ arguments = $ this -> getArguments ( ) ; $ to = null ; $ from = $ arguments [ 'from' ] ; if ( true === isset ( $ arguments [ 'to' ] ) ) { $ to = $ arguments [ 'to' ] ; } array_walk ( $ options , function ( & $ option ) { $ option = '--' . $ option ; } ) ; array_walk ( $ arguments , function ( & $ value , $ argument ) { $ value = '--' . $ argument . '=' . $ value ; } ) ; return trim ( sprintf ( '%s %s %s' , $ this -> getBaseCommand ( ) , $ this -> getRange ( $ from , $ to ) , join ( ' ' , $ options ) ) ) ; }
Returns the compiled VCS log command.

@return string
Returns the compiled VCS log command .