code: public static function fromAggregateRootClass(string $aggregateRootClass): AggregateType
      {
          if (! \class_exists($aggregateRootClass)) {
              throw new Exception\InvalidArgumentException(\sprintf('Aggregate root class %s can not be found', $aggregateRootClass));
          }
  
          $self = new static();
          $self->aggregateType = $aggregateRootClass;
  
          return $self;
      }
docs: Use this factory when aggregate type equals to aggregate root class
  The factory makes sure that the aggregate root class exists.
  
  @throws Exception\InvalidArgumentException