original_string: public function removeItem(PricedItemInterface $item)
      {
          if ($this->hasItem($item)) {
              $item->setContainer(null);
              $this->items->removeElement($item);
  
              $this->itemsTotal = null;
              $this->total = null;
          }
  
          return $this;
      }
code: public function removeItem(PricedItemInterface $item)
      {
          if ($this->hasItem($item)) {
              $item->setContainer(null);
              $this->items->removeElement($item);
  
              $this->itemsTotal = null;
              $this->total = null;
          }
  
          return $this;
      }
code_tokens: public function removeItem ( PricedItemInterface $ item ) { if ( $ this -> hasItem ( $ item ) ) { $ item -> setContainer ( null ) ; $ this -> items -> removeElement ( $ item ) ; $ this -> itemsTotal = null ; $ this -> total = null ; } return $ this ; }
docstring: Remove a given item
  
  @param PricedItemInterface $item
  
  @return $this
docstring_tokens: Remove a given item