original_string: public function modifyCollection($collectionName, array $collectionOptions, array $options = [])
      {
          if ( ! isset($options['typeMap'])) {
              $options['typeMap'] = $this->typeMap;
          }
  
          $server = $this->manager->selectServer(new ReadPreference(ReadPreference::RP_PRIMARY));
  
          if ( ! isset($options['writeConcern']) && \MongoDB\server_supports_feature($server, self::$wireVersionForWritableCommandWriteConcern)) {
              $options['writeConcern'] = $this->writeConcern;
          }
  
          $operation = new ModifyCollection($this->databaseName, $collectionName, $collectionOptions, $options);
  
          return $operation->execute($server);
      }
code: public function modifyCollection($collectionName, array $collectionOptions, array $options = [])
      {
          if ( ! isset($options['typeMap'])) {
              $options['typeMap'] = $this->typeMap;
          }
  
          $server = $this->manager->selectServer(new ReadPreference(ReadPreference::RP_PRIMARY));
  
          if ( ! isset($options['writeConcern']) && \MongoDB\server_supports_feature($server, self::$wireVersionForWritableCommandWriteConcern)) {
              $options['writeConcern'] = $this->writeConcern;
          }
  
          $operation = new ModifyCollection($this->databaseName, $collectionName, $collectionOptions, $options);
  
          return $operation->execute($server);
      }
code_tokens: public function modifyCollection ( $ collectionName , array $ collectionOptions , array $ options = [ ] ) { if ( ! isset ( $ options [ 'typeMap' ] ) ) { $ options [ 'typeMap' ] = $ this -> typeMap ; } $ server = $ this -> manager -> selectServer ( new ReadPreference ( ReadPreference :: RP_PRIMARY ) ) ; if ( ! isset ( $ options [ 'writeConcern' ] ) && \ MongoDB \ server_supports_feature ( $ server , self :: $ wireVersionForWritableCommandWriteConcern ) ) { $ options [ 'writeConcern' ] = $ this -> writeConcern ; } $ operation = new ModifyCollection ( $ this -> databaseName , $ collectionName , $ collectionOptions , $ options ) ; return $ operation -> execute ( $ server ) ; }
docstring: Modifies a collection or view.
  
  @see ModifyCollection::__construct() for supported options
  @param string $collectionName    Collection or view to modify
  @param array  $collectionOptions Collection or view options to assign
  @param array  $options           Command options
  @throws InvalidArgumentException for parameter/option parsing errors
  @throws DriverRuntimeException for other driver errors (e.g. connection errors)
docstring_tokens: Modifies a collection or view .