/**
  * @param int $storeId
  * @return Collector
  */
 private function getTotalCollector($storeId)
 {
     if ($this->totalCollector === null) {
         $store = $this->storeManager->getStore($storeId);
         $this->totalCollector = $this->totalCollectorFactory->create(['store' => $store]);
     }
     return $this->totalCollector;
 }
Esempio n. 2
0
 /**
  * Get totals collector model
  *
  * @return \Magento\Quote\Model\Quote\Address\Total\Collector
  */
 public function getTotalCollector()
 {
     if ($this->_totalCollector === null) {
         $this->_totalCollector = $this->_totalCollectorFactory->create(['store' => $this->getQuote()->getStore()]);
     }
     return $this->_totalCollector;
 }