BulkOperation

Contains all data needed for one operation of a bulk write operation.

package

Default

Methods

BulkOperation constructor

__construct( $bulkOperation) 

Arguments

$bulkOperation

mixed | null

getDocument

getDocument() : array

Response

array

getFilter

getFilter() : array

Response

array

getType

getType() : string

Response

string

isMulti

isMulti() : boolean

Response

boolean

isUpsert

isUpsert() : boolean

Response

boolean

setDocument

setDocument( $document) : $this

Arguments

$document

array

Response

$this

setFilter

setFilter( $filter) : $this

Arguments

$filter

array

Response

$this

setMulti

setMulti( $multi) : $this

Arguments

$multi

boolean

Response

$this

setType

setType( $type) : $this

Arguments

$type

string

Response

$this

setUpsert

setUpsert( $upsert) : $this

Arguments

$upsert

boolean

Response

$this