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(); } /**