private function createExecuteOptions()
    {
        $options = [];

        if (isset($this->options['session'])) {
            $options['session'] = $this->options['session'];
        }

        if (isset($this->options['writeConcern'])) {
            $options['writeConcern'] = $this->options['writeConcern'];
        }

        return $options;
    }
private function createExecuteOptions()
    {
        $options = [];

        if (isset($this->options['session'])) {
            $options['session'] = $this->options['session'];
        }

        if (isset($this->options['writeConcern'])) {
            $options['writeConcern'] = $this->options['writeConcern'];
        }

        return $options;
    }
private function createExecuteOptions ( ) { $ options = [ ] ; if ( isset ( $ this -> options [ 'session' ] ) ) { $ options [ 'session' ] = $ this -> options [ 'session' ] ; } if ( isset ( $ this -> options [ 'writeConcern' ] ) ) { $ options [ 'writeConcern' ] = $ this -> options [ 'writeConcern' ] ; } return $ options ; }
Create options for executing the bulk write.

@see http://php.net/manual/en/mongodb-driver-server.executebulkwrite.php
@return array
Create options for executing the bulk write .