Example #1
0
 /**
  * Retrieves a serialized representation
  *
  * @return string
  */
 public function serialize()
 {
     return serialize(['aggregate_id' => $this->aggregateId, 'aggregate_type' => $this->aggregateType, 'committed_sequence' => $this->committedSequence, 'last_sequence' => $this->lastSequence, 'messages' => $this->messages->toArray()]);
 }