custom/plugins/AcrisProductBadgesCS/src/Custom/ProductBadgesEntity.php line 14

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Acris\ProductBadges\Custom;
  3. use Acris\ProductBadges\Custom\Aggregate\ProductBadgesTranslation\ProductBadgesTranslationCollection;
  4. use Shopware\Core\Checkout\Promotion\PromotionCollection;
  5. use Shopware\Core\Content\Media\MediaEntity;
  6. use Shopware\Core\Content\ProductStream\ProductStreamCollection;
  7. use Shopware\Core\Content\Rule\RuleCollection;
  8. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  9. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  10. use Shopware\Core\Framework\Struct\Struct;
  11. class ProductBadgesEntity extends Entity
  12. {
  13.     use EntityIdTrait;
  14.     /**
  15.      * @var string
  16.      */
  17.     protected $internalName;
  18.     /**
  19.      * @var boolean|null
  20.      */
  21.     protected $active;
  22.     /**
  23.      * @var \DateTimeInterface|null
  24.      */
  25.     protected $activeFrom;
  26.     /**
  27.      * @var \DateTimeInterface|null
  28.      */
  29.     protected $activeUntil;
  30.     /**
  31.      * @var float|null
  32.      */
  33.     protected $priority;
  34.     /**
  35.      * @var string|null
  36.      */
  37.     protected $badgeTextColor;
  38.     /**
  39.      * @var string|null
  40.      */
  41.     protected $backgroundColor;
  42.     /**
  43.      * @var string|null
  44.      */
  45.     protected $backgroundShape;
  46.     /**
  47.      * @var int|null
  48.      */
  49.     protected $backgroundBorderRadius;
  50.     /**
  51.      * @var string|null
  52.      */
  53.     protected $foreground;
  54.     /**
  55.      * @var string|null
  56.      */
  57.     protected $background;
  58.     /**
  59.      * @var string|null
  60.      */
  61.     protected $replaceDefaultBadgeId;
  62.     /**
  63.      * @var ProductBadgesEntity|null
  64.      */
  65.     protected $replaceDefaultBadge;
  66.     /**
  67.      * @var RuleCollection|null
  68.      */
  69.     protected $replaceRules;
  70.     /**
  71.      * @var boolean|null
  72.      */
  73.     protected $isDefault;
  74.     /**
  75.      * @var string|null
  76.      */
  77.     protected $defaultType;
  78.     /**
  79.      * @var string|null
  80.      */
  81.     protected $productListing;
  82.     /**
  83.      * @var string|null
  84.      */
  85.     protected $productDetailPage;
  86.     /**
  87.      * @var string|null
  88.      */
  89.     protected $imageSelectionId;
  90.     /**
  91.      * @var MediaEntity|null
  92.      */
  93.     protected $imageSelection;
  94.     /**
  95.      * @var string|null
  96.      */
  97.     protected $imageSelectionShapeId;
  98.     /**
  99.      * @var string|null
  100.      */
  101.     protected $displayCondition;
  102.     /**
  103.      * @var PromotionCollection|null
  104.      */
  105.     protected $promotions;
  106.     /**
  107.      * @var MediaEntity|null
  108.      */
  109.     protected $imageSelectionShape;
  110.     /**
  111.      * @var RuleCollection|null
  112.      */
  113.     protected $rules;
  114.     /**
  115.      * @var ProductStreamCollection|null
  116.      */
  117.     protected $productStreams;
  118.     /**
  119.      * @var ProductBadgesTranslationCollection|null
  120.      */
  121.     protected $translations;
  122.     /**
  123.      * @return Struct[]
  124.      */
  125.     public function getExtensions(): array
  126.     {
  127.         return $this->extensions;
  128.     }
  129.     /**
  130.      * @param Struct[] $extensions
  131.      */
  132.     public function setExtensions(array $extensions): void
  133.     {
  134.         $this->extensions $extensions;
  135.     }
  136.     /**
  137.      * @return string
  138.      */
  139.     public function getInternalName(): string
  140.     {
  141.         return $this->internalName;
  142.     }
  143.     /**
  144.      * @param string $internalName
  145.      */
  146.     public function setInternalName(string $internalName): void
  147.     {
  148.         $this->internalName $internalName;
  149.     }
  150.     /**
  151.      * @return bool|null
  152.      */
  153.     public function getActive(): ?bool
  154.     {
  155.         return $this->active;
  156.     }
  157.     /**
  158.      * @param bool|null $active
  159.      */
  160.     public function setActive(?bool $active): void
  161.     {
  162.         $this->active $active;
  163.     }
  164.     /**
  165.      * @return \DateTimeInterface|null
  166.      */
  167.     public function getActiveFrom(): ?\DateTimeInterface
  168.     {
  169.         return $this->activeFrom;
  170.     }
  171.     /**
  172.      * @param \DateTimeInterface|null $activeFrom
  173.      */
  174.     public function setActiveFrom(?\DateTimeInterface $activeFrom): void
  175.     {
  176.         $this->activeFrom $activeFrom;
  177.     }
  178.     /**
  179.      * @return \DateTimeInterface|null
  180.      */
  181.     public function getActiveUntil(): ?\DateTimeInterface
  182.     {
  183.         return $this->activeUntil;
  184.     }
  185.     /**
  186.      * @param \DateTimeInterface|null $activeUntil
  187.      */
  188.     public function setActiveUntil(?\DateTimeInterface $activeUntil): void
  189.     {
  190.         $this->activeUntil $activeUntil;
  191.     }
  192.     /**
  193.      * @return float|null
  194.      */
  195.     public function getPriority(): ?float
  196.     {
  197.         return $this->priority;
  198.     }
  199.     /**
  200.      * @param float|null $priority
  201.      */
  202.     public function setPriority(?float $priority): void
  203.     {
  204.         $this->priority $priority;
  205.     }
  206.     /**
  207.      * @return string|null
  208.      */
  209.     public function getBadgeTextColor(): ?string
  210.     {
  211.         return $this->badgeTextColor;
  212.     }
  213.     /**
  214.      * @param string|null $badgeTextColor
  215.      */
  216.     public function setBadgeTextColor(?string $badgeTextColor): void
  217.     {
  218.         $this->badgeTextColor $badgeTextColor;
  219.     }
  220.     /**
  221.      * @return string|null
  222.      */
  223.     public function getBackgroundColor(): ?string
  224.     {
  225.         return $this->backgroundColor;
  226.     }
  227.     /**
  228.      * @param string|null $backgroundColor
  229.      */
  230.     public function setBackgroundColor(?string $backgroundColor): void
  231.     {
  232.         $this->backgroundColor $backgroundColor;
  233.     }
  234.     /**
  235.      * @return string|null
  236.      */
  237.     public function getBackgroundShape(): ?string
  238.     {
  239.         return $this->backgroundShape;
  240.     }
  241.     /**
  242.      * @param string|null $backgroundShape
  243.      */
  244.     public function setBackgroundShape(?string $backgroundShape): void
  245.     {
  246.         $this->backgroundShape $backgroundShape;
  247.     }
  248.     /**
  249.      * @return int|null
  250.      */
  251.     public function getBackgroundBorderRadius(): ?int
  252.     {
  253.         return $this->backgroundBorderRadius;
  254.     }
  255.     /**
  256.      * @param int|null $backgroundBorderRadius
  257.      */
  258.     public function setBackgroundBorderRadius(?int $backgroundBorderRadius): void
  259.     {
  260.         $this->backgroundBorderRadius $backgroundBorderRadius;
  261.     }
  262.     /**
  263.      * @return string|null
  264.      */
  265.     public function getProductListing(): ?string
  266.     {
  267.         return $this->productListing;
  268.     }
  269.     /**
  270.      * @param string|null $productListing
  271.      */
  272.     public function setProductListing(?string $productListing): void
  273.     {
  274.         $this->productListing $productListing;
  275.     }
  276.     /**
  277.      * @return string|null
  278.      */
  279.     public function getProductDetailPage(): ?string
  280.     {
  281.         return $this->productDetailPage;
  282.     }
  283.     /**
  284.      * @param string|null $productDetailPage
  285.      */
  286.     public function setProductDetailPage(?string $productDetailPage): void
  287.     {
  288.         $this->productDetailPage $productDetailPage;
  289.     }
  290.     /**
  291.      * @return string|null
  292.      */
  293.     public function getImageSelectionId(): ?string
  294.     {
  295.         return $this->imageSelectionId;
  296.     }
  297.     /**
  298.      * @param string|null $imageSelectionId
  299.      */
  300.     public function setImageSelectionId(?string $imageSelectionId): void
  301.     {
  302.         $this->imageSelectionId $imageSelectionId;
  303.     }
  304.     /**
  305.      * @return MediaEntity|null
  306.      */
  307.     public function getImageSelection(): ?MediaEntity
  308.     {
  309.         return $this->imageSelection;
  310.     }
  311.     /**
  312.      * @param MediaEntity|null $imageSelection
  313.      */
  314.     public function setImageSelection(?MediaEntity $imageSelection): void
  315.     {
  316.         $this->imageSelection $imageSelection;
  317.     }
  318.     /**
  319.      * @return string|null
  320.      */
  321.     public function getImageSelectionShapeId(): ?string
  322.     {
  323.         return $this->imageSelectionShapeId;
  324.     }
  325.     /**
  326.      * @param string|null $imageSelectionShapeId
  327.      */
  328.     public function setImageSelectionShapeId(?string $imageSelectionShapeId): void
  329.     {
  330.         $this->imageSelectionShapeId $imageSelectionShapeId;
  331.     }
  332.     /**
  333.      * @return MediaEntity|null
  334.      */
  335.     public function getImageSelectionShape(): ?MediaEntity
  336.     {
  337.         return $this->imageSelectionShape;
  338.     }
  339.     /**
  340.      * @param MediaEntity|null $imageSelectionShape
  341.      */
  342.     public function setImageSelectionShape(?MediaEntity $imageSelectionShape): void
  343.     {
  344.         $this->imageSelectionShape $imageSelectionShape;
  345.     }
  346.     /**
  347.      * @return RuleCollection|null
  348.      */
  349.     public function getRules(): ?RuleCollection
  350.     {
  351.         return $this->rules;
  352.     }
  353.     /**
  354.      * @param RuleCollection|null $rules
  355.      */
  356.     public function setRules(?RuleCollection $rules): void
  357.     {
  358.         $this->rules $rules;
  359.     }
  360.     /**
  361.      * @return ProductStreamCollection|null
  362.      */
  363.     public function getProductStreams(): ?ProductStreamCollection
  364.     {
  365.         return $this->productStreams;
  366.     }
  367.     /**
  368.      * @param ProductStreamCollection|null $productStreams
  369.      */
  370.     public function setProductStreams(?ProductStreamCollection $productStreams): void
  371.     {
  372.         $this->productStreams $productStreams;
  373.     }
  374.     /**
  375.      * @return ProductBadgesTranslationCollection|null
  376.      */
  377.     public function getTranslations(): ?ProductBadgesTranslationCollection
  378.     {
  379.         return $this->translations;
  380.     }
  381.     /**
  382.      * @param ProductBadgesTranslationCollection|null $translations
  383.      */
  384.     public function setTranslations(?ProductBadgesTranslationCollection $translations): void
  385.     {
  386.         $this->translations $translations;
  387.     }
  388.     /**
  389.      * @return string|null
  390.      */
  391.     public function getForeground(): ?string
  392.     {
  393.         return $this->foreground;
  394.     }
  395.     /**
  396.      * @param string|null $foreground
  397.      */
  398.     public function setForeground(?string $foreground): void
  399.     {
  400.         $this->foreground $foreground;
  401.     }
  402.     /**
  403.      * @return string|null
  404.      */
  405.     public function getBackground(): ?string
  406.     {
  407.         return $this->background;
  408.     }
  409.     /**
  410.      * @param string|null $background
  411.      */
  412.     public function setBackground(?string $background): void
  413.     {
  414.         $this->background $background;
  415.     }
  416.     /**
  417.      * @return bool|null
  418.      */
  419.     public function getIsDefault(): ?bool
  420.     {
  421.         return $this->isDefault;
  422.     }
  423.     /**
  424.      * @param bool|null $isDefault
  425.      */
  426.     public function setIsDefault(?bool $isDefault): void
  427.     {
  428.         $this->isDefault $isDefault;
  429.     }
  430.     /**
  431.      * @return string|null
  432.      */
  433.     public function getDefaultType(): ?string
  434.     {
  435.         return $this->defaultType;
  436.     }
  437.     /**
  438.      * @param string|null $defaultType
  439.      */
  440.     public function setDefaultType(?string $defaultType): void
  441.     {
  442.         $this->defaultType $defaultType;
  443.     }
  444.     /**
  445.      * @return string
  446.      */
  447.     public function getUniqueIdentifier(): string
  448.     {
  449.         return $this->_uniqueIdentifier;
  450.     }
  451.     /**
  452.      * @param string $uniqueIdentifier
  453.      */
  454.     public function setUniqueIdentifier(string $uniqueIdentifier): void
  455.     {
  456.         $this->_uniqueIdentifier $uniqueIdentifier;
  457.     }
  458.     /**
  459.      * @return string|null
  460.      */
  461.     public function getDisplayCondition(): ?string
  462.     {
  463.         return $this->displayCondition;
  464.     }
  465.     /**
  466.      * @param string|null $displayCondition
  467.      */
  468.     public function setDisplayCondition(?string $displayCondition): void
  469.     {
  470.         $this->displayCondition $displayCondition;
  471.     }
  472.     /**
  473.      * @return PromotionCollection|null
  474.      */
  475.     public function getPromotions(): ?PromotionCollection
  476.     {
  477.         return $this->promotions;
  478.     }
  479.     /**
  480.      * @param PromotionCollection|null $promotions
  481.      */
  482.     public function setPromotions(?PromotionCollection $promotions): void
  483.     {
  484.         $this->promotions $promotions;
  485.     }
  486.     /**
  487.      * @return string|null
  488.      */
  489.     public function getReplaceDefaultBadgeId(): ?string
  490.     {
  491.         return $this->replaceDefaultBadgeId;
  492.     }
  493.     /**
  494.      * @param string|null $replaceDefaultBadgeId
  495.      */
  496.     public function setReplaceDefaultBadgeId(?string $replaceDefaultBadgeId): void
  497.     {
  498.         $this->replaceDefaultBadgeId $replaceDefaultBadgeId;
  499.     }
  500.     /**
  501.      * @return ProductBadgesEntity|null
  502.      */
  503.     public function getReplaceDefaultBadge(): ?ProductBadgesEntity
  504.     {
  505.         return $this->replaceDefaultBadge;
  506.     }
  507.     /**
  508.      * @param ProductBadgesEntity|null $replaceDefaultBadge
  509.      */
  510.     public function setReplaceDefaultBadge(?ProductBadgesEntity $replaceDefaultBadge): void
  511.     {
  512.         $this->replaceDefaultBadge $replaceDefaultBadge;
  513.     }
  514.     /**
  515.      * @return RuleCollection|null
  516.      */
  517.     public function getReplaceRules(): ?RuleCollection
  518.     {
  519.         return $this->replaceRules;
  520.     }
  521.     /**
  522.      * @param RuleCollection|null $replaceRules
  523.      */
  524.     public function setReplaceRules(?RuleCollection $replaceRules): void
  525.     {
  526.         $this->replaceRules $replaceRules;
  527.     }
  528. }