<?php declare(strict_types=1);namespace Acris\ProductBadges\Custom;use Acris\ProductBadges\Custom\Aggregate\ProductBadgesTranslation\ProductBadgesTranslationCollection;use Shopware\Core\Checkout\Promotion\PromotionCollection;use Shopware\Core\Content\Media\MediaEntity;use Shopware\Core\Content\ProductStream\ProductStreamCollection;use Shopware\Core\Content\Rule\RuleCollection;use Shopware\Core\Framework\DataAbstractionLayer\Entity;use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;use Shopware\Core\Framework\Struct\Struct;class ProductBadgesEntity extends Entity{ use EntityIdTrait; /** * @var string */ protected $internalName; /** * @var boolean|null */ protected $active; /** * @var \DateTimeInterface|null */ protected $activeFrom; /** * @var \DateTimeInterface|null */ protected $activeUntil; /** * @var float|null */ protected $priority; /** * @var string|null */ protected $badgeTextColor; /** * @var string|null */ protected $backgroundColor; /** * @var string|null */ protected $backgroundShape; /** * @var int|null */ protected $backgroundBorderRadius; /** * @var string|null */ protected $foreground; /** * @var string|null */ protected $background; /** * @var string|null */ protected $replaceDefaultBadgeId; /** * @var ProductBadgesEntity|null */ protected $replaceDefaultBadge; /** * @var RuleCollection|null */ protected $replaceRules; /** * @var boolean|null */ protected $isDefault; /** * @var string|null */ protected $defaultType; /** * @var string|null */ protected $productListing; /** * @var string|null */ protected $productDetailPage; /** * @var string|null */ protected $imageSelectionId; /** * @var MediaEntity|null */ protected $imageSelection; /** * @var string|null */ protected $imageSelectionShapeId; /** * @var string|null */ protected $displayCondition; /** * @var PromotionCollection|null */ protected $promotions; /** * @var MediaEntity|null */ protected $imageSelectionShape; /** * @var RuleCollection|null */ protected $rules; /** * @var ProductStreamCollection|null */ protected $productStreams; /** * @var ProductBadgesTranslationCollection|null */ protected $translations; /** * @return Struct[] */ public function getExtensions(): array { return $this->extensions; } /** * @param Struct[] $extensions */ public function setExtensions(array $extensions): void { $this->extensions = $extensions; } /** * @return string */ public function getInternalName(): string { return $this->internalName; } /** * @param string $internalName */ public function setInternalName(string $internalName): void { $this->internalName = $internalName; } /** * @return bool|null */ public function getActive(): ?bool { return $this->active; } /** * @param bool|null $active */ public function setActive(?bool $active): void { $this->active = $active; } /** * @return \DateTimeInterface|null */ public function getActiveFrom(): ?\DateTimeInterface { return $this->activeFrom; } /** * @param \DateTimeInterface|null $activeFrom */ public function setActiveFrom(?\DateTimeInterface $activeFrom): void { $this->activeFrom = $activeFrom; } /** * @return \DateTimeInterface|null */ public function getActiveUntil(): ?\DateTimeInterface { return $this->activeUntil; } /** * @param \DateTimeInterface|null $activeUntil */ public function setActiveUntil(?\DateTimeInterface $activeUntil): void { $this->activeUntil = $activeUntil; } /** * @return float|null */ public function getPriority(): ?float { return $this->priority; } /** * @param float|null $priority */ public function setPriority(?float $priority): void { $this->priority = $priority; } /** * @return string|null */ public function getBadgeTextColor(): ?string { return $this->badgeTextColor; } /** * @param string|null $badgeTextColor */ public function setBadgeTextColor(?string $badgeTextColor): void { $this->badgeTextColor = $badgeTextColor; } /** * @return string|null */ public function getBackgroundColor(): ?string { return $this->backgroundColor; } /** * @param string|null $backgroundColor */ public function setBackgroundColor(?string $backgroundColor): void { $this->backgroundColor = $backgroundColor; } /** * @return string|null */ public function getBackgroundShape(): ?string { return $this->backgroundShape; } /** * @param string|null $backgroundShape */ public function setBackgroundShape(?string $backgroundShape): void { $this->backgroundShape = $backgroundShape; } /** * @return int|null */ public function getBackgroundBorderRadius(): ?int { return $this->backgroundBorderRadius; } /** * @param int|null $backgroundBorderRadius */ public function setBackgroundBorderRadius(?int $backgroundBorderRadius): void { $this->backgroundBorderRadius = $backgroundBorderRadius; } /** * @return string|null */ public function getProductListing(): ?string { return $this->productListing; } /** * @param string|null $productListing */ public function setProductListing(?string $productListing): void { $this->productListing = $productListing; } /** * @return string|null */ public function getProductDetailPage(): ?string { return $this->productDetailPage; } /** * @param string|null $productDetailPage */ public function setProductDetailPage(?string $productDetailPage): void { $this->productDetailPage = $productDetailPage; } /** * @return string|null */ public function getImageSelectionId(): ?string { return $this->imageSelectionId; } /** * @param string|null $imageSelectionId */ public function setImageSelectionId(?string $imageSelectionId): void { $this->imageSelectionId = $imageSelectionId; } /** * @return MediaEntity|null */ public function getImageSelection(): ?MediaEntity { return $this->imageSelection; } /** * @param MediaEntity|null $imageSelection */ public function setImageSelection(?MediaEntity $imageSelection): void { $this->imageSelection = $imageSelection; } /** * @return string|null */ public function getImageSelectionShapeId(): ?string { return $this->imageSelectionShapeId; } /** * @param string|null $imageSelectionShapeId */ public function setImageSelectionShapeId(?string $imageSelectionShapeId): void { $this->imageSelectionShapeId = $imageSelectionShapeId; } /** * @return MediaEntity|null */ public function getImageSelectionShape(): ?MediaEntity { return $this->imageSelectionShape; } /** * @param MediaEntity|null $imageSelectionShape */ public function setImageSelectionShape(?MediaEntity $imageSelectionShape): void { $this->imageSelectionShape = $imageSelectionShape; } /** * @return RuleCollection|null */ public function getRules(): ?RuleCollection { return $this->rules; } /** * @param RuleCollection|null $rules */ public function setRules(?RuleCollection $rules): void { $this->rules = $rules; } /** * @return ProductStreamCollection|null */ public function getProductStreams(): ?ProductStreamCollection { return $this->productStreams; } /** * @param ProductStreamCollection|null $productStreams */ public function setProductStreams(?ProductStreamCollection $productStreams): void { $this->productStreams = $productStreams; } /** * @return ProductBadgesTranslationCollection|null */ public function getTranslations(): ?ProductBadgesTranslationCollection { return $this->translations; } /** * @param ProductBadgesTranslationCollection|null $translations */ public function setTranslations(?ProductBadgesTranslationCollection $translations): void { $this->translations = $translations; } /** * @return string|null */ public function getForeground(): ?string { return $this->foreground; } /** * @param string|null $foreground */ public function setForeground(?string $foreground): void { $this->foreground = $foreground; } /** * @return string|null */ public function getBackground(): ?string { return $this->background; } /** * @param string|null $background */ public function setBackground(?string $background): void { $this->background = $background; } /** * @return bool|null */ public function getIsDefault(): ?bool { return $this->isDefault; } /** * @param bool|null $isDefault */ public function setIsDefault(?bool $isDefault): void { $this->isDefault = $isDefault; } /** * @return string|null */ public function getDefaultType(): ?string { return $this->defaultType; } /** * @param string|null $defaultType */ public function setDefaultType(?string $defaultType): void { $this->defaultType = $defaultType; } /** * @return string */ public function getUniqueIdentifier(): string { return $this->_uniqueIdentifier; } /** * @param string $uniqueIdentifier */ public function setUniqueIdentifier(string $uniqueIdentifier): void { $this->_uniqueIdentifier = $uniqueIdentifier; } /** * @return string|null */ public function getDisplayCondition(): ?string { return $this->displayCondition; } /** * @param string|null $displayCondition */ public function setDisplayCondition(?string $displayCondition): void { $this->displayCondition = $displayCondition; } /** * @return PromotionCollection|null */ public function getPromotions(): ?PromotionCollection { return $this->promotions; } /** * @param PromotionCollection|null $promotions */ public function setPromotions(?PromotionCollection $promotions): void { $this->promotions = $promotions; } /** * @return string|null */ public function getReplaceDefaultBadgeId(): ?string { return $this->replaceDefaultBadgeId; } /** * @param string|null $replaceDefaultBadgeId */ public function setReplaceDefaultBadgeId(?string $replaceDefaultBadgeId): void { $this->replaceDefaultBadgeId = $replaceDefaultBadgeId; } /** * @return ProductBadgesEntity|null */ public function getReplaceDefaultBadge(): ?ProductBadgesEntity { return $this->replaceDefaultBadge; } /** * @param ProductBadgesEntity|null $replaceDefaultBadge */ public function setReplaceDefaultBadge(?ProductBadgesEntity $replaceDefaultBadge): void { $this->replaceDefaultBadge = $replaceDefaultBadge; } /** * @return RuleCollection|null */ public function getReplaceRules(): ?RuleCollection { return $this->replaceRules; } /** * @param RuleCollection|null $replaceRules */ public function setReplaceRules(?RuleCollection $replaceRules): void { $this->replaceRules = $replaceRules; }}