original_string: private static function isValidManager(ObjectManager $manager, $class)
      {
          $meta = $manager->getClassMetadata($class);
  
          return !$meta instanceof OrmClassMetadata || !$meta->isMappedSuperclass;
      }
code: private static function isValidManager(ObjectManager $manager, $class)
      {
          $meta = $manager->getClassMetadata($class);
  
          return !$meta instanceof OrmClassMetadata || !$meta->isMappedSuperclass;
      }
code_tokens: private static function isValidManager ( ObjectManager $ manager , $ class ) { $ meta = $ manager -> getClassMetadata ( $ class ) ; return ! $ meta instanceof OrmClassMetadata || ! $ meta -> isMappedSuperclass ; }
docstring: Check if the object manager is valid.
  
  @param ObjectManager $manager The object manager
  @param string        $class   The class name
  
  @return bool
docstring_tokens: Check if the object manager is valid .