Firestore/src/Transaction.php
public function snapshot(DocumentReference $document, array $options = [])
    {
        return $this->createSnapshot($this->connection, $this->valueMapper, $document, [
            'transaction' => $this->transaction,
        ] + $options);
    }
public function snapshot(DocumentReference $document, array $options = [])
    {
        return $this->createSnapshot($this->connection, $this->valueMapper, $document, [
            'transaction' => $this->transaction,
        ] + $options);
    }
public function snapshot ( DocumentReference $ document , array $ options = [ ] ) { return $ this -> createSnapshot ( $ this -> connection , $ this -> valueMapper , $ document , [ 'transaction' => $ this -> transaction , ] + $ options ) ; }
Get a Document Snapshot.

Example:
```
$snapshot = $transaction->snapshot($document);
```

@param DocumentReference $document The document to retrieve.
@param array $options Configuration options.
@return DocumentSnapshot
Get a Document Snapshot .