/** * Removes position from the shopping cart of key * @param mixed $key */ public function remove($key) { parent::remove($key); $this->applyDiscounts(); $this->onRemovePosition(new Event($this)); $this->saveState(); }