src/Price/Model/PricedItemsContainerTrait.php
public function removeItem(PricedItemInterface $item)
    {
        if ($this->hasItem($item)) {
            $item->setContainer(null);
            $this->items->removeElement($item);

            $this->itemsTotal = null;
            $this->total = null;
        }

        return $this;
    }
public function removeItem(PricedItemInterface $item)
    {
        if ($this->hasItem($item)) {
            $item->setContainer(null);
            $this->items->removeElement($item);

            $this->itemsTotal = null;
            $this->total = null;
        }

        return $this;
    }
public function removeItem ( PricedItemInterface $ item ) { if ( $ this -> hasItem ( $ item ) ) { $ item -> setContainer ( null ) ; $ this -> items -> removeElement ( $ item ) ; $ this -> itemsTotal = null ; $ this -> total = null ; } return $ this ; }
Remove a given item

@param PricedItemInterface $item

@return $this
Remove a given item