PHP Class Prooph\EventStore\Adapter\PayloadSerializer\JsonPayloadSerializer

Author: Alexander Miertsch ([email protected])
Inheritance: implements Prooph\EventStore\Adapter\PayloadSerializer
Exibir arquivo Open project: prooph/event-store Class Usage Examples

Public Methods

Method Description
serializePayload ( array $payload ) : string
unserializePayload ( string $payloadStr ) : array

Method Details

serializePayload() public method

public serializePayload ( array $payload ) : string
$payload array
return string

unserializePayload() public method

public unserializePayload ( string $payloadStr ) : array
$payloadStr string
return array