Spanner/src/Batch/BatchSnapshot.php
public function serialize()
    {
        return base64_encode(json_encode([
            'sessionName' => $this->session->name(),
            'transactionId' => $this->transactionId,
            'readTimestamp' => $this->readTimestamp->formatAsString()
        ]));
    }
public function serialize()
    {
        return base64_encode(json_encode([
            'sessionName' => $this->session->name(),
            'transactionId' => $this->transactionId,
            'readTimestamp' => $this->readTimestamp->formatAsString()
        ]));
    }
public function serialize ( ) { return base64_encode ( json_encode ( [ 'sessionName' => $ this -> session -> name ( ) , 'transactionId' => $ this -> transactionId , 'readTimestamp' => $ this -> readTimestamp -> formatAsString ( ) ] ) ) ; }
Return a stringified representation of the BatchSnapshot object.

Example:
```
$snapshotString = $snapshot->serialize();
```

@return string
Return a stringified representation of the BatchSnapshot object .