public function prune($name, $dryRun = false)
    {
        $this->arguments[] = 'prune';
        if ($dryRun) {
            $this->arguments[] = '--dry-run';
        }
        $this->arguments[] = $name;
        return $this;
    }
public function prune($name, $dryRun = false)
    {
        $this->arguments[] = 'prune';
        if ($dryRun) {
            $this->arguments[] = '--dry-run';
        }
        $this->arguments[] = $name;
        return $this;
    }
public function prune ( $ name , $ dryRun = false ) { $ this -> arguments [ ] = 'prune' ; if ( $ dryRun ) { $ this -> arguments [ ] = '--dry-run' ; } $ this -> arguments [ ] = $ name ; return $ this ; }
Add the prune option to the command line.

@param string $name   Name of the remote.

@param bool   $dryRun Flag if a dry run shall be done.

@return RemoteCommandBuilder
Add the prune option to the command line .