UpdateOptions

Options for configuring updates.

package

Default

Methods

UpdateOptions constructor

__construct( $updateOptions = null) 

Arguments

$updateOptions

mixed | null

getWriteOption

getWriteOption() : string

Response

string

isMulti

isMulti() : boolean

Response

boolean

isReturningNewDocument

isReturningNewDocument() : boolean

Response

boolean

isUpsert

isUpsert() : boolean

Response

boolean

setMulti

setMulti( $multi) : $this

Arguments

$multi

boolean

Response

$this

setReturningNewDocument

setReturningNewDocument( $returningNewDocument) : $this

Arguments

$returningNewDocument

boolean

Response

$this

setUpsert

setUpsert( $upsert) : $this

Arguments

$upsert

boolean

Response

$this

setWriteOption

setWriteOption( $writeOption) : $this

Arguments

$writeOption

string

Response

$this