public function getCommand()
    {
        if (is_null($this->commandName)) {
            throw new \RuntimeException("You should pass a commandName to execute a command");
        }

        $command = '';
        $command .= $this->getCLIConfigs();
        $command .= $this->getCLIGlobalOptions();
        $command .= $this->getCLICommandName();
        $command .= $this->getCLICommandArguments();
        $command .= $this->getCLISubjects();
        $command .= $this->getCLIPath();

        $command = preg_replace('/\\s{2,}/', ' ', $command);

        return trim($command);
    }
public function getCommand()
    {
        if (is_null($this->commandName)) {
            throw new \RuntimeException("You should pass a commandName to execute a command");
        }

        $command = '';
        $command .= $this->getCLIConfigs();
        $command .= $this->getCLIGlobalOptions();
        $command .= $this->getCLICommandName();
        $command .= $this->getCLICommandArguments();
        $command .= $this->getCLISubjects();
        $command .= $this->getCLIPath();

        $command = preg_replace('/\\s{2,}/', ' ', $command);

        return trim($command);
    }
public function getCommand ( ) { if ( is_null ( $ this -> commandName ) ) { throw new \ RuntimeException ( "You should pass a commandName to execute a command" ) ; } $ command = '' ; $ command .= $ this -> getCLIConfigs ( ) ; $ command .= $ this -> getCLIGlobalOptions ( ) ; $ command .= $ this -> getCLICommandName ( ) ; $ command .= $ this -> getCLICommandArguments ( ) ; $ command .= $ this -> getCLISubjects ( ) ; $ command .= $ this -> getCLIPath ( ) ; $ command = preg_replace ( '/\\s{2,}/' , ' ' , $ command ) ; return trim ( $ command ) ; }
Get the current command

@return string
@throws \RuntimeException
Get the current command