vendor/shopware/core/Content/Product/Aggregate/ProductPrice/ProductPriceEntity.php line 10

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Content\Product\Aggregate\ProductPrice;
  3. use Shopware\Core\Content\Product\ProductEntity;
  4. use Shopware\Core\Content\Rule\RuleEntity;
  5. use Shopware\Core\Framework\DataAbstractionLayer\EntityCustomFieldsTrait;
  6. use Shopware\Core\Framework\DataAbstractionLayer\Pricing\PriceRuleEntity;
  7. class ProductPriceEntity extends PriceRuleEntity
  8. {
  9.     use EntityCustomFieldsTrait;
  10.     /**
  11.      * @var string
  12.      */
  13.     protected $productId;
  14.     /**
  15.      * @var int
  16.      */
  17.     protected $quantityStart;
  18.     /**
  19.      * @var int|null
  20.      */
  21.     protected $quantityEnd;
  22.     /**
  23.      * @var ProductEntity|null
  24.      */
  25.     protected $product;
  26.     /**
  27.      * @var RuleEntity|null
  28.      */
  29.     protected $rule;
  30.     public function getProduct(): ?ProductEntity
  31.     {
  32.         return $this->product;
  33.     }
  34.     public function setProduct(ProductEntity $product): void
  35.     {
  36.         $this->product $product;
  37.     }
  38.     public function getRule(): ?RuleEntity
  39.     {
  40.         return $this->rule;
  41.     }
  42.     public function setRule(RuleEntity $rule): void
  43.     {
  44.         $this->rule $rule;
  45.     }
  46.     public function getQuantityStart(): int
  47.     {
  48.         return $this->quantityStart;
  49.     }
  50.     public function setQuantityStart(int $quantityStart): void
  51.     {
  52.         $this->quantityStart $quantityStart;
  53.     }
  54.     public function getQuantityEnd(): ?int
  55.     {
  56.         return $this->quantityEnd;
  57.     }
  58.     public function setQuantityEnd(?int $quantityEnd): void
  59.     {
  60.         $this->quantityEnd $quantityEnd;
  61.     }
  62.     public function getProductId(): string
  63.     {
  64.         return $this->productId;
  65.     }
  66.     public function setProductId(string $productId): void
  67.     {
  68.         $this->productId $productId;
  69.     }
  70. }