src/Graviton/I18nBundle/Translator/Translator.php
private function getFromCache($original)
    {
        $cacheContent = $this->cache->fetch($this->getCacheKey($original));
        if (is_array($cacheContent) && isset($cacheContent[$original])) {
            return $cacheContent[$original];
        }

        return null;
    }
private function getFromCache($original)
    {
        $cacheContent = $this->cache->fetch($this->getCacheKey($original));
        if (is_array($cacheContent) && isset($cacheContent[$original])) {
            return $cacheContent[$original];
        }

        return null;
    }
private function getFromCache ( $ original ) { $ cacheContent = $ this -> cache -> fetch ( $ this -> getCacheKey ( $ original ) ) ; if ( is_array ( $ cacheContent ) && isset ( $ cacheContent [ $ original ] ) ) { return $ cacheContent [ $ original ] ; } return null ; }
gets entry from cache

@param string $original original string

@return array|null entry
gets entry from cache