original_string: public function getAndRemove($key)
      {
          $data = $this->get($key);
          if ($data) {
              $this->remove($key);
          }
          return $data;
      }
code: public function getAndRemove($key)
      {
          $data = $this->get($key);
          if ($data) {
              $this->remove($key);
          }
          return $data;
      }
code_tokens: public function getAndRemove ( $ key ) { $ data = $ this -> get ( $ key ) ; if ( $ data ) { $ this -> remove ( $ key ) ; } return $ data ; }
docstring: Return specific value by key and then clear it.
  
  @param string $key
  
  @return mixed|null
docstring_tokens: Return specific value by key and then clear it .