original_string: public function remove($id)
      {
          if ($this->has($id) === false) {
              return;
          }
  
          $collection = $this->idCollections[$id];
  
          unset($this->idCollections[$id]);
          unset($this->itemCollections[$collection]);
          unset($this->items[$id]);
      }
code: public function remove($id)
      {
          if ($this->has($id) === false) {
              return;
          }
  
          $collection = $this->idCollections[$id];
  
          unset($this->idCollections[$id]);
          unset($this->itemCollections[$collection]);
          unset($this->items[$id]);
      }
code_tokens: public function remove ( $ id ) { if ( $ this -> has ( $ id ) === false ) { return ; } $ collection = $ this -> idCollections [ $ id ] ; unset ( $ this -> idCollections [ $ id ] ) ; unset ( $ this -> itemCollections [ $ collection ] ) ; unset ( $ this -> items [ $ id ] ) ; }
docstring: Removes an item.
  
  @param string $id The identifier of the item
docstring_tokens: Removes an item .