src/CacheableMetadataFactory.php
private function freshOrNull(ClassMetadata $classMetadata = null)
    {
        if (null === $classMetadata) {
            return;
        }

        return $this->freshnessValidator->isFresh($classMetadata) ? $classMetadata : null;
    }
private function freshOrNull(ClassMetadata $classMetadata = null)
    {
        if (null === $classMetadata) {
            return;
        }

        return $this->freshnessValidator->isFresh($classMetadata) ? $classMetadata : null;
    }
private function freshOrNull ( ClassMetadata $ classMetadata = null ) { if ( null === $ classMetadata ) { return ; } return $ this -> freshnessValidator -> isFresh ( $ classMetadata ) ? $ classMetadata : null ; }
Internal method for handling refreshing of metadata.

@param ClassMetadata|null $classMetadata

@return ClassMetadata|null
Internal method for handling refreshing of metadata .