Firestore/src/DocumentReference.php
protected function batchFactory()
    {
        return new WriteBatch(
            $this->connection,
            $this->valueMapper,
            $this->databaseFromName($this->name)
        );
    }
protected function batchFactory()
    {
        return new WriteBatch(
            $this->connection,
            $this->valueMapper,
            $this->databaseFromName($this->name)
        );
    }
protected function batchFactory ( ) { return new WriteBatch ( $ this -> connection , $ this -> valueMapper , $ this -> databaseFromName ( $ this -> name ) ) ; }
Create a Batch Writer for single-use mutations in this class.

@return WriteBatch
Create a Batch Writer for single - use mutations in this class .