quoteLinkManagement = $quoteLinkManagement; $this->coreHelper = $coreHelper; } /** * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function afterGet(CartRepositoryInterface $cartRepository, CartInterface $cart) { if ($this->coreHelper->isPwaEnabled()) { $this->quoteLinkManagement->setAmazonOrderReferenceIdExtensionAttribute($cart); } return $cart; } /** * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function afterGetForCustomer(CartRepositoryInterface $cartRepository, CartInterface $cart) { if ($this->coreHelper->isPwaEnabled()) { $this->quoteLinkManagement->setAmazonOrderReferenceIdExtensionAttribute($cart); } return $cart; } /** * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function afterGetActive(CartRepositoryInterface $cartRepository, CartInterface $cart) { if ($this->coreHelper->isPwaEnabled()) { $this->quoteLinkManagement->setAmazonOrderReferenceIdExtensionAttribute($cart); } return $cart; } /** * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function afterGetActiveForCustomer(CartRepositoryInterface $cartRepository, CartInterface $cart) { if ($this->coreHelper->isPwaEnabled()) { $this->quoteLinkManagement->setAmazonOrderReferenceIdExtensionAttribute($cart); } return $cart; } }