original_string: public function getMetadataFor($value)
      {
          $metaData = new ClassMetadata(get_class($value));
          $fullClass = $this->getClassValidator($value);
  
          if (empty($fullClass)) {
              return $metaData;
          }
  
          /** @var $loader LoaderMetadataInterface */
          $loader = new $fullClass();
          $loader->load($metaData);
          if ($this->listener) {
              $this->listener->onLoaded($value, $metaData);
          }
  
          return $metaData;
      }
code: public function getMetadataFor($value)
      {
          $metaData = new ClassMetadata(get_class($value));
          $fullClass = $this->getClassValidator($value);
  
          if (empty($fullClass)) {
              return $metaData;
          }
  
          /** @var $loader LoaderMetadataInterface */
          $loader = new $fullClass();
          $loader->load($metaData);
          if ($this->listener) {
              $this->listener->onLoaded($value, $metaData);
          }
  
          return $metaData;
      }
code_tokens: public function getMetadataFor ( $ value ) { $ metaData = new ClassMetadata ( get_class ( $ value ) ) ; $ fullClass = $ this -> getClassValidator ( $ value ) ; if ( empty ( $ fullClass ) ) { return $ metaData ; } /** @var $loader LoaderMetadataInterface */ $ loader = new $ fullClass ( ) ; $ loader -> load ( $ metaData ) ; if ( $ this -> listener ) { $ this -> listener -> onLoaded ( $ value , $ metaData ) ; } return $ metaData ; }
docstring: Returns the metadata for the given value.
  
  @param mixed $value Some value
  
  @return MetadataInterface The metadata for the value
  
  @throws NoSuchMetadataException If no metadata exists for the given value
docstring_tokens: Returns the metadata for the given value .