public function getMagentoProduct() { if (is_null($this->getProductId())) { return NULL; } if (is_null($this->magentoProduct)) { $this->magentoProduct = $this->modelFactory->getObject('Magento\\Product'); $this->magentoProduct->setStoreId($this->getOrder()->getStoreId())->setProductId($this->getProductId()); } return $this->magentoProduct; }