original_string: protected function isCacheExpired($fromCurrency, $toCurrency)
      {
          $cacheCreationTime = $this->getCacheCreationTime($fromCurrency, $toCurrency);
          return (time() - $cacheCreationTime) > $this->getCacheTimeOut()->format('%s');
      }
code: protected function isCacheExpired($fromCurrency, $toCurrency)
      {
          $cacheCreationTime = $this->getCacheCreationTime($fromCurrency, $toCurrency);
          return (time() - $cacheCreationTime) > $this->getCacheTimeOut()->format('%s');
      }
code_tokens: protected function isCacheExpired ( $ fromCurrency , $ toCurrency ) { $ cacheCreationTime = $ this -> getCacheCreationTime ( $ fromCurrency , $ toCurrency ) ; return ( time ( ) - $ cacheCreationTime ) > $ this -> getCacheTimeOut ( ) -> format ( '%s' ) ; }
docstring: Checks if cache is expired
  
  @param  string $fromCurrency
  @param  string $toCurrency
  @return bool
docstring_tokens: Checks if cache is expired