Firestore/src/FirestoreClient.php
public function batch()
    {
        return new WriteBatch(
            $this->connection,
            $this->valueMapper,
            $this->databaseName(
                $this->projectId,
                $this->database
            )
        );
    }
public function batch()
    {
        return new WriteBatch(
            $this->connection,
            $this->valueMapper,
            $this->databaseName(
                $this->projectId,
                $this->database
            )
        );
    }
public function batch ( ) { return new WriteBatch ( $ this -> connection , $ this -> valueMapper , $ this -> databaseName ( $ this -> projectId , $ this -> database ) ) ; }
Get a Batch Writer

The {@see Google\Cloud\Firestore\WriteBatch} allows more performant
multi-document, atomic updates.

Example:
```
$batch = $firestore->batch();
```

@return WriteBatch
Get a Batch Writer