/** * Adding item to wishlist * * @param Item $item * @return $this */ public function addItem(Item $item) { $item->setWishlist($this); if (!$item->getId()) { $this->getItemCollection()->addItem($item); $this->_eventManager->dispatch('wishlist_add_item', array('item' => $item)); } return $this; }