vendor/shopware/core/Content/Product/DataAbstractionLayer/CheapestPrice/CalculatedCheapestPrice.php line 7

  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Content\Product\DataAbstractionLayer\CheapestPrice;
  3. use Shopware\Core\Checkout\Cart\Price\Struct\CalculatedPrice;
  4. use Shopware\Core\Framework\Log\Package;
  5. #[Package('core')]
  6. class CalculatedCheapestPrice extends CalculatedPrice
  7. {
  8.     /**
  9.      * @var bool
  10.      */
  11.     protected $hasRange false;
  12.     protected ?string $variantId null;
  13.     public function hasRange(): bool
  14.     {
  15.         return $this->hasRange;
  16.     }
  17.     public function setHasRange(bool $hasRange): void
  18.     {
  19.         $this->hasRange $hasRange;
  20.     }
  21.     public function getApiAlias(): string
  22.     {
  23.         return 'calculated_cheapest_price';
  24.     }
  25.     public function setVariantId(string $variantId): void
  26.     {
  27.         $this->variantId $variantId;
  28.     }
  29.     public function getVariantId(): ?string
  30.     {
  31.         return $this->variantId;
  32.     }
  33. }