Skip to content

Commit

Permalink
use (Product)PriceInterface instead of (Product)Price in the codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
vitek-rostislav committed Jan 23, 2025
1 parent c33de12 commit 355ed1f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Model/FeedItem/GoogleFeedItemFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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();
}

/**
Expand Down

0 comments on commit 355ed1f

Please sign in to comment.