Spanner/src/Batch/ReadPartition.php
public function serialize()
    {
        $vars = get_object_vars($this);
        $vars['keySet'] = $vars['keySet']->keySetObject();

        return base64_encode(json_encode($vars + [
            BatchClient::PARTITION_TYPE_KEY => static::class
        ]));
    }
public function serialize()
    {
        $vars = get_object_vars($this);
        $vars['keySet'] = $vars['keySet']->keySetObject();

        return base64_encode(json_encode($vars + [
            BatchClient::PARTITION_TYPE_KEY => static::class
        ]));
    }
public function serialize ( ) { $ vars = get_object_vars ( $ this ) ; $ vars [ 'keySet' ] = $ vars [ 'keySet' ] -> keySetObject ( ) ; return base64_encode ( json_encode ( $ vars + [ BatchClient :: PARTITION_TYPE_KEY => static :: class ] ) ) ; }
Return a stringified representation of the ReadPartition object.

Example:
```
$partitionString = $partition->serialize();
```

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