original_string: public function delete(string $id): bool
      {
          if (\array_key_exists($id, $this->cache)) {
  
              //delete value
              unset($this->cache[$id]);
  
              //return function result
              return true;
          }
  
          return false;
      }
code: public function delete(string $id): bool
      {
          if (\array_key_exists($id, $this->cache)) {
  
              //delete value
              unset($this->cache[$id]);
  
              //return function result
              return true;
          }
  
          return false;
      }
code_tokens: public function delete ( string $ id ) : bool { if ( \ array_key_exists ( $ id , $ this -> cache ) ) { //delete value unset ( $ this -> cache [ $ id ] ) ; //return function result return true ; } return false ; }
docstring: Delete value from container.
  
  @param string $id
docstring_tokens: Delete value from container .