/**
* Get the aggregate root if it exists otherwise null
*
* @param AggregateType $aggregateType
* @param string $aggregateId
* @return null|object
*/
public function get(AggregateType $aggregateType, $aggregateId)
{
if (!isset($this->map[$aggregateType->toString()][$aggregateId])) {
return;
}
return $this->map[$aggregateType->toString()][$aggregateId];
}