Beispiel #1
0
 /**
  * Update one or more items in a collection with the provided data.
  *
  * @param null|array|\Closure $query The query to use to select the items.
  * @param array               $data An array of data presenting the update.
  * @param array               $options An array of options for the process.
  *
  * @return int|bool The number of items updated or false on failure.
  */
 public function update($query, $data, $options = [])
 {
     return $this->peer->update($data, $query, $options);
 }