_storeManager = $storeManager; $this->_compareItemFactory = $compareItemFactory; $this->_itemCollectionFactory = $itemCollectionFactory; $this->_customerSession = $customerSession; $this->_customerVisitor = $customerVisitor; $this->_catalogProductCompareList = $catalogProductCompareList; $this->_catalogSession = $catalogSession; $this->_formKeyValidator = $formKeyValidator; $this->resultPageFactory = $resultPageFactory; $this->productRepository = $productRepository; parent::__construct($context); } /** * Setter for customer id * * @param int $customerId * @return $this */ public function setCustomerId($customerId) { $this->_customerId = $customerId; return $this; } }