From 355ed1fdfe5466a3554b03b4e3b071c98b121091 Mon Sep 17 00:00:00 2001 From: Rostislav Vitek Date: Thu, 16 Jan 2025 15:59:49 +0100 Subject: [PATCH] use (Product)PriceInterface instead of (Product)Price in the codebase --- src/Model/FeedItem/GoogleFeedItemFactory.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Model/FeedItem/GoogleFeedItemFactory.php b/src/Model/FeedItem/GoogleFeedItemFactory.php index a1cf66901..514545927 100644 --- a/src/Model/FeedItem/GoogleFeedItemFactory.php +++ b/src/Model/FeedItem/GoogleFeedItemFactory.php @@ -7,11 +7,11 @@ use Shopsys\FrameworkBundle\Component\Domain\Config\DomainConfig; use Shopsys\FrameworkBundle\Model\Pricing\Currency\Currency; use Shopsys\FrameworkBundle\Model\Pricing\Currency\CurrencyFacade; +use Shopsys\FrameworkBundle\Model\Pricing\PriceInterface; use Shopsys\FrameworkBundle\Model\Pricing\SpecialPrice\SpecialPrice; use Shopsys\FrameworkBundle\Model\Pricing\SpecialPrice\SpecialPriceFacade; use Shopsys\FrameworkBundle\Model\Product\Availability\ProductAvailabilityFacade; use Shopsys\FrameworkBundle\Model\Product\Collection\ProductUrlsBatchLoader; -use Shopsys\FrameworkBundle\Model\Product\Pricing\ProductPrice; use Shopsys\FrameworkBundle\Model\Product\Pricing\ProductPriceCalculationForCustomerUser; use Shopsys\FrameworkBundle\Model\Product\Product; @@ -70,14 +70,14 @@ protected function getBrandName(Product $product): ?string /** * @param \Shopsys\FrameworkBundle\Model\Product\Product $product * @param \Shopsys\FrameworkBundle\Component\Domain\Config\DomainConfig $domainConfig - * @return \Shopsys\FrameworkBundle\Model\Product\Pricing\ProductPrice + * @return \Shopsys\FrameworkBundle\Model\Pricing\PriceInterface */ - protected function getPrice(Product $product, DomainConfig $domainConfig): ProductPrice + protected function getPrice(Product $product, DomainConfig $domainConfig): PriceInterface { return $this->productPriceCalculationForCustomerUser->calculateBasicPriceForCustomerUserAndDomainId( $product, $domainConfig->getId(), - ); + )->getPrice(); } /**