code: public static function fromString(string $aggregateTypeString): AggregateType
      {
          if (empty($aggregateTypeString)) {
              throw new Exception\InvalidArgumentException('AggregateType must be a non empty string');
          }
  
          $self = new static();
          $self->aggregateType = $aggregateTypeString;
  
          return $self;
      }
docs: Use this factory when the aggregate type is not equal to the aggregate root class
  
  @throws Exception\InvalidArgumentException