private function doAddCommands()
    {
        if (!empty($this->newCommands)) {
            $this->shell->addCommands($this->newCommands);
            $this->newCommands = [];
        }
    }
private function doAddCommands()
    {
        if (!empty($this->newCommands)) {
            $this->shell->addCommands($this->newCommands);
            $this->newCommands = [];
        }
    }
private function doAddCommands ( ) { if ( ! empty ( $ this -> newCommands ) ) { $ this -> shell -> addCommands ( $ this -> newCommands ) ; $ this -> newCommands = [ ] ; } }
Internal method for adding commands. This will set any new commands once
a Shell is available.
Internal method for adding commands . This will set any new commands once a Shell is available .