original_string: public function getTranslatableMetadata($className)
      {
          if (array_key_exists($className, $this->cache)) {
              return $this->cache[$className];
          }
  
          if ($metadata = $this->metadataFactory->getMetadataForClass($className)) {
              if (!$metadata->reflection->isAbstract()) {
                  $metadata->validate();
              }
          }
  
          $this->cache[$className] = $metadata;
          return $metadata;
      }
code: public function getTranslatableMetadata($className)
      {
          if (array_key_exists($className, $this->cache)) {
              return $this->cache[$className];
          }
  
          if ($metadata = $this->metadataFactory->getMetadataForClass($className)) {
              if (!$metadata->reflection->isAbstract()) {
                  $metadata->validate();
              }
          }
  
          $this->cache[$className] = $metadata;
          return $metadata;
      }
code_tokens: public function getTranslatableMetadata ( $ className ) { if ( array_key_exists ( $ className , $ this -> cache ) ) { return $ this -> cache [ $ className ] ; } if ( $ metadata = $ this -> metadataFactory -> getMetadataForClass ( $ className ) ) { if ( ! $ metadata -> reflection -> isAbstract ( ) ) { $ metadata -> validate ( ) ; } } $ this -> cache [ $ className ] = $ metadata ; return $ metadata ; }
docstring: Get translatable metadata
  
  @param string $className
  @return TranslatableMetadata|TranslationMetadata
docstring_tokens: Get translatable metadata