baseCollectionFactory = $baseCollectionFactory; $this->salespersonCollection = $salespersonCollection; } public function getSalesperson(): \Magento\Framework\Data\Collection|ResourceModel\Salesperson\Collection { if ($this->_customerSession->getCustomerId()) { $this->salespersonCollection->getSelect()->joinInner( 'customer_salesperson', 'customer_salesperson.salesperson_id = main_table.salesperson_id and customer_salesperson.customer_id = '.$this->_customerSession->getCustomerId(), ); return $this->salespersonCollection; } return $this->baseCollectionFactory->create()->setItemObjectClass(Salesperson::class); } public function getQuoteData($key) { return $this->getQuote()? $this->getQuote()->getData($key):null; } }