vendor/shopware/core/Content/Product/DataAbstractionLayer/CheapestPrice/CheapestPrice.php line 9

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Content\Product\DataAbstractionLayer\CheapestPrice;
  3. use Shopware\Core\Framework\DataAbstractionLayer\Pricing\Price;
  4. use Shopware\Core\Framework\DataAbstractionLayer\Pricing\PriceCollection;
  5. use Shopware\Core\Framework\Struct\Struct;
  6. class CheapestPrice extends Struct
  7. {
  8.     /**
  9.      * @var bool
  10.      */
  11.     protected $hasRange;
  12.     /**
  13.      * @var string
  14.      */
  15.     protected $variantId;
  16.     /**
  17.      * @var string
  18.      */
  19.     protected $parentId;
  20.     /**
  21.      * @var string|null
  22.      */
  23.     protected $ruleId;
  24.     /**
  25.      * @var float|null
  26.      */
  27.     protected $purchase;
  28.     /**
  29.      * @var float|null
  30.      */
  31.     protected $reference;
  32.     /**
  33.      * @var string|null
  34.      */
  35.     protected $unitId;
  36.     /**
  37.      * @var PriceCollection
  38.      */
  39.     protected $price;
  40.     public function getCurrencyPrice(string $currencyId): ?Price
  41.     {
  42.         return $this->price->getCurrencyPrice($currencyId);
  43.     }
  44.     public function getVariantId(): string
  45.     {
  46.         return $this->variantId;
  47.     }
  48.     public function setVariantId(string $variantId): void
  49.     {
  50.         $this->variantId $variantId;
  51.     }
  52.     public function getRuleId(): ?string
  53.     {
  54.         return $this->ruleId;
  55.     }
  56.     public function setRuleId(?string $ruleId): void
  57.     {
  58.         $this->ruleId $ruleId;
  59.     }
  60.     public function getPrice(): PriceCollection
  61.     {
  62.         return $this->price;
  63.     }
  64.     public function setPrice(PriceCollection $price): void
  65.     {
  66.         $this->price $price;
  67.     }
  68.     public function hasRange(): bool
  69.     {
  70.         return $this->hasRange;
  71.     }
  72.     public function setHasRange(bool $hasRange): void
  73.     {
  74.         $this->hasRange $hasRange;
  75.     }
  76.     public function getParentId(): string
  77.     {
  78.         return $this->parentId;
  79.     }
  80.     public function setParentId(string $parentId): void
  81.     {
  82.         $this->parentId $parentId;
  83.     }
  84.     public function getPurchase(): ?float
  85.     {
  86.         return $this->purchase;
  87.     }
  88.     public function setPurchase(?float $purchase): void
  89.     {
  90.         $this->purchase $purchase;
  91.     }
  92.     public function getReference(): ?float
  93.     {
  94.         return $this->reference;
  95.     }
  96.     public function setReference(?float $reference): void
  97.     {
  98.         $this->reference $reference;
  99.     }
  100.     public function getUnitId(): ?string
  101.     {
  102.         return $this->unitId;
  103.     }
  104.     public function setUnitId(?string $unitId): void
  105.     {
  106.         $this->unitId $unitId;
  107.     }
  108. }