original_string: public function getCache()
      {
          if ($this->cache) {
              return $this->cache;
          }
  
          if (property_exists($this, 'app') && $this->app instanceof ServiceContainer
              && isset($this->app['cache']) && $this->app['cache'] instanceof CacheInterface) {
              return $this->cache = $this->app['cache'];
          }
  
          return $this->cache = $this->createDefaultCache();
      }
code: public function getCache()
      {
          if ($this->cache) {
              return $this->cache;
          }
  
          if (property_exists($this, 'app') && $this->app instanceof ServiceContainer
              && isset($this->app['cache']) && $this->app['cache'] instanceof CacheInterface) {
              return $this->cache = $this->app['cache'];
          }
  
          return $this->cache = $this->createDefaultCache();
      }
code_tokens: public function getCache ( ) { if ( $ this -> cache ) { return $ this -> cache ; } if ( property_exists ( $ this , 'app' ) && $ this -> app instanceof ServiceContainer && isset ( $ this -> app [ 'cache' ] ) && $ this -> app [ 'cache' ] instanceof CacheInterface ) { return $ this -> cache = $ this -> app [ 'cache' ] ; } return $ this -> cache = $ this -> createDefaultCache ( ) ; }
docstring: Get cache instance.
  
  @return \Psr\SimpleCache\CacheInterface
docstring_tokens: Get cache instance .