src/EventSourcing/DBAL/EventStream.php 1 location
|
@@ 193-202 (lines=10) @@
|
190 |
|
* @param $row |
191 |
|
* @return DomainMessage |
192 |
|
*/ |
193 |
|
private function deserializeEvent($row) |
194 |
|
{ |
195 |
|
return new DomainMessage( |
196 |
|
$row['uuid'], |
197 |
|
$row['playhead'], |
198 |
|
$this->metadataSerializer->deserialize(json_decode($row['metadata'], true)), |
199 |
|
$this->payloadSerializer->deserialize(json_decode($row['payload'], true)), |
200 |
|
DateTime::fromString($row['recorded_on']) |
201 |
|
); |
202 |
|
} |
203 |
|
} |
204 |
|
|
src/EventSourcing/DBAL/AggregateAwareDBALEventStore.php 1 location
|
@@ 206-215 (lines=10) @@
|
203 |
|
* @param $row |
204 |
|
* @return DomainMessage |
205 |
|
*/ |
206 |
|
private function deserializeEvent($row) |
207 |
|
{ |
208 |
|
return new DomainMessage( |
209 |
|
$row['uuid'], |
210 |
|
$row['playhead'], |
211 |
|
$this->metadataSerializer->deserialize(json_decode($row['metadata'], true)), |
212 |
|
$this->payloadSerializer->deserialize(json_decode($row['payload'], true)), |
213 |
|
DateTime::fromString($row['recorded_on']) |
214 |
|
); |
215 |
|
} |
216 |
|
|
217 |
|
/** |
218 |
|
* Ensure that an error will be thrown if the ID in the domain messages is |