currentDocument = $currentDocument; } /** * @return Precondition */ public function getCurrentDocument() { return $this->currentDocument; } /** * @param string */ public function setDelete($delete) { $this->delete = $delete; } /** * @return string */ public function getDelete() { return $this->delete; } /** * @param DocumentTransform */ public function setTransform(DocumentTransform $transform) { $this->transform = $transform; } /** * @return DocumentTransform */ public function getTransform() { return $this->transform; } /** * @param Document */ public function setUpdate(Document $update) { $this->update = $update; } /** * @return Document */ public function getUpdate() { return $this->update; } /** * @param DocumentMask */ public function setUpdateMask(DocumentMask $updateMask) { $this->updateMask = $updateMask; } /** * @return DocumentMask */ public function getUpdateMask() { return $this->updateMask; } /** * @param FieldTransform[] */ public function setUpdateTransforms($updateTransforms) { $this->updateTransforms = $updateTransforms; } /** * @return FieldTransform[] */ public function getUpdateTransforms() { return $this->updateTransforms; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Write::class, 'Google_Service_Firestore_Write');