/** * Add or update an item in the cart * * @param Item $item * * @return bool */ public function insertUpdate(Item $item) { static::$cart[$this->id][$item->getIdentifier()] = $item; return true; }