original_string: private function executeCommand(Server $server)
      {
          $cmd = [
              'createIndexes' => $this->collectionName,
              'indexes' => $this->indexes,
          ];
  
          if (isset($this->options['maxTimeMS'])) {
              $cmd['maxTimeMS'] = $this->options['maxTimeMS'];
          }
  
          $server->executeWriteCommand($this->databaseName, new Command($cmd), $this->createOptions());
      }
code: private function executeCommand(Server $server)
      {
          $cmd = [
              'createIndexes' => $this->collectionName,
              'indexes' => $this->indexes,
          ];
  
          if (isset($this->options['maxTimeMS'])) {
              $cmd['maxTimeMS'] = $this->options['maxTimeMS'];
          }
  
          $server->executeWriteCommand($this->databaseName, new Command($cmd), $this->createOptions());
      }
code_tokens: private function executeCommand ( Server $ server ) { $ cmd = [ 'createIndexes' => $ this -> collectionName , 'indexes' => $ this -> indexes , ] ; if ( isset ( $ this -> options [ 'maxTimeMS' ] ) ) { $ cmd [ 'maxTimeMS' ] = $ this -> options [ 'maxTimeMS' ] ; } $ server -> executeWriteCommand ( $ this -> databaseName , new Command ( $ cmd ) , $ this -> createOptions ( ) ) ; }
docstring: Create one or more indexes for the collection using the createIndexes
  command.
  
  @param Server $server
  @throws DriverRuntimeException for other driver errors (e.g. connection errors)
docstring_tokens: Create one or more indexes for the collection using the createIndexes command .