original_string: public function getTranslation($entity, $property, $locale)
      {
          $metadata = $this->metadataCollection->getMetadata($entity);
          if($metadata === null) {
              return null;
          }
  
          $property = $metadata->getProperty($property);
          if($property === null) {
              return null;
          }
  
          $strategy = $this->strategyResolver->getStrategy($property->getStrategy());
          return $strategy->getTranslation($entity, $property, $locale, $metadata);
      }
code: public function getTranslation($entity, $property, $locale)
      {
          $metadata = $this->metadataCollection->getMetadata($entity);
          if($metadata === null) {
              return null;
          }
  
          $property = $metadata->getProperty($property);
          if($property === null) {
              return null;
          }
  
          $strategy = $this->strategyResolver->getStrategy($property->getStrategy());
          return $strategy->getTranslation($entity, $property, $locale, $metadata);
      }
code_tokens: public function getTranslation ( $ entity , $ property , $ locale ) { $ metadata = $ this -> metadataCollection -> getMetadata ( $ entity ) ; if ( $ metadata === null ) { return null ; } $ property = $ metadata -> getProperty ( $ property ) ; if ( $ property === null ) { return null ; } $ strategy = $ this -> strategyResolver -> getStrategy ( $ property -> getStrategy ( ) ) ; return $ strategy -> getTranslation ( $ entity , $ property , $ locale , $ metadata ) ; }
docstring: Translate a single property of an entity.
  
  @param $entity
  @param $property
  @param $locale
  @return null
  @throws \Exception
docstring_tokens: Translate a single property of an entity .