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

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. use Shopware\Core\Framework\Log\Package;
  8. #[Package('inventory')]
  9. class ProductPriceEntity extends PriceRuleEntity
  10. {
  11.     use EntityCustomFieldsTrait;
  12.     /**
  13.      * @var string
  14.      */
  15.     protected $productId;
  16.     /**
  17.      * @var int
  18.      */
  19.     protected $quantityStart;
  20.     /**
  21.      * @var int|null
  22.      */
  23.     protected $quantityEnd;
  24.     /**
  25.      * @var ProductEntity|null
  26.      */
  27.     protected $product;
  28.     /**
  29.      * @var RuleEntity|null
  30.      */
  31.     protected $rule;
  32.     public function getProduct(): ?ProductEntity
  33.     {
  34.         return $this->product;
  35.     }
  36.     public function setProduct(ProductEntity $product): void
  37.     {
  38.         $this->product $product;
  39.     }
  40.     public function getRule(): ?RuleEntity
  41.     {
  42.         return $this->rule;
  43.     }
  44.     public function setRule(RuleEntity $rule): void
  45.     {
  46.         $this->rule $rule;
  47.     }
  48.     public function getQuantityStart(): int
  49.     {
  50.         return $this->quantityStart;
  51.     }
  52.     public function setQuantityStart(int $quantityStart): void
  53.     {
  54.         $this->quantityStart $quantityStart;
  55.     }
  56.     public function getQuantityEnd(): ?int
  57.     {
  58.         return $this->quantityEnd;
  59.     }
  60.     public function setQuantityEnd(?int $quantityEnd): void
  61.     {
  62.         $this->quantityEnd $quantityEnd;
  63.     }
  64.     public function getProductId(): string
  65.     {
  66.         return $this->productId;
  67.     }
  68.     public function setProductId(string $productId): void
  69.     {
  70.         $this->productId $productId;
  71.     }
  72. }