code: public function reconstituteAggregateFromHistory(AggregateType $aggregateType, Iterator $historyEvents)
      {
          if (! $aggregateRootClass = $aggregateType->mappedClass()) {
              $aggregateRootClass = $aggregateType->toString();
          }
  
          return $this->getAggregateRootDecorator()
              ->fromHistory($aggregateRootClass, $historyEvents);
      }
docs: @param AggregateType $aggregateType
  @param Iterator $historyEvents
  
  @return object reconstructed AggregateRoot