protected function setAggregateId($aggregateId) { Assertion::string($aggregateId); Assertion::notEmpty($aggregateId); $this->metadata['aggregate_id'] = $aggregateId; }