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;
    }
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;
    }
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 ; }
Create options for the update command.

Note that these options are different from the bulk write options, which
are created in createExecuteOptions().

@return array
Create options for the update command .