code: private function getParentClassName(ClassMetadata $metadata)
      {
          // So far only single inheritance is supported
          if (count($metadata->parentClasses) > 0) {
              return $metadata->parentClasses[0];
          }
  
          return $metadata->getName();
      }
docs: @param ClassMetadata $metadata
  
  @return string