original_string: private function freshOrNull(ClassMetadata $classMetadata = null)
      {
          if (null === $classMetadata) {
              return;
          }
  
          return $this->freshnessValidator->isFresh($classMetadata) ? $classMetadata : null;
      }
code: private function freshOrNull(ClassMetadata $classMetadata = null)
      {
          if (null === $classMetadata) {
              return;
          }
  
          return $this->freshnessValidator->isFresh($classMetadata) ? $classMetadata : null;
      }
code_tokens: private function freshOrNull ( ClassMetadata $ classMetadata = null ) { if ( null === $ classMetadata ) { return ; } return $ this -> freshnessValidator -> isFresh ( $ classMetadata ) ? $ classMetadata : null ; }
docstring: Internal method for handling refreshing of metadata.
  
  @param ClassMetadata|null $classMetadata
  
  @return ClassMetadata|null
docstring_tokens: Internal method for handling refreshing of metadata .