original_string: private function createUpdateOptions()
      {
          $updateOptions = [
              'multi' => $this->options['multi'],
              'upsert' => $this->options['upsert'],
          ];
  
          if (isset($this->options['arrayFilters'])) {
              $updateOptions['arrayFilters'] = $this->options['arrayFilters'];
          }
  
          if (isset($this->options['collation'])) {
              $updateOptions['collation'] = (object) $this->options['collation'];
          }
  
          return $updateOptions;
      }
code: private function createUpdateOptions()
      {
          $updateOptions = [
              'multi' => $this->options['multi'],
              'upsert' => $this->options['upsert'],
          ];
  
          if (isset($this->options['arrayFilters'])) {
              $updateOptions['arrayFilters'] = $this->options['arrayFilters'];
          }
  
          if (isset($this->options['collation'])) {
              $updateOptions['collation'] = (object) $this->options['collation'];
          }
  
          return $updateOptions;
      }
code_tokens: private function createUpdateOptions ( ) { $ updateOptions = [ 'multi' => $ this -> options [ 'multi' ] , 'upsert' => $ this -> options [ 'upsert' ] , ] ; if ( isset ( $ this -> options [ 'arrayFilters' ] ) ) { $ updateOptions [ 'arrayFilters' ] = $ this -> options [ 'arrayFilters' ] ; } if ( isset ( $ this -> options [ 'collation' ] ) ) { $ updateOptions [ 'collation' ] = ( object ) $ this -> options [ 'collation' ] ; } return $ updateOptions ; }
docstring: Create options for the update command.
  
  Note that these options are different from the bulk write options, which
  are created in createExecuteOptions().
  
  @return array
docstring_tokens: Create options for the update command .