vendor/shopware/core/Content/Property/Aggregate/PropertyGroupOption/PropertyGroupOptionEntity.php line 17

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Content\Property\Aggregate\PropertyGroupOption;
  3. use Shopware\Core\Content\Media\MediaEntity;
  4. use Shopware\Core\Content\Product\Aggregate\ProductConfiguratorSetting\ProductConfiguratorSettingCollection;
  5. use Shopware\Core\Content\Product\Aggregate\ProductConfiguratorSetting\ProductConfiguratorSettingEntity;
  6. use Shopware\Core\Content\Product\ProductCollection;
  7. use Shopware\Core\Content\Property\Aggregate\PropertyGroupOptionTranslation\PropertyGroupOptionTranslationCollection;
  8. use Shopware\Core\Content\Property\PropertyGroupEntity;
  9. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  10. use Shopware\Core\Framework\DataAbstractionLayer\EntityCustomFieldsTrait;
  11. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  12. use Shopware\Core\Framework\Log\Package;
  13. #[Package('inventory')]
  14. class PropertyGroupOptionEntity extends Entity
  15. {
  16.     use EntityIdTrait;
  17.     use EntityCustomFieldsTrait;
  18.     /**
  19.      * @var string
  20.      */
  21.     protected $groupId;
  22.     /**
  23.      * @var string|null
  24.      */
  25.     protected $name;
  26.     /**
  27.      * @var int|null
  28.      */
  29.     protected $position;
  30.     /**
  31.      * @var string|null
  32.      */
  33.     protected $colorHexCode;
  34.     /**
  35.      * @var string|null
  36.      */
  37.     protected $mediaId;
  38.     /**
  39.      * @var PropertyGroupEntity|null
  40.      */
  41.     protected $group;
  42.     /**
  43.      * @var PropertyGroupOptionTranslationCollection|null
  44.      */
  45.     protected $translations;
  46.     /**
  47.      * @var ProductConfiguratorSettingCollection|null
  48.      */
  49.     protected $productConfiguratorSettings;
  50.     /**
  51.      * @var ProductCollection|null
  52.      */
  53.     protected $productProperties;
  54.     /**
  55.      * @var ProductCollection|null
  56.      */
  57.     protected $productOptions;
  58.     /**
  59.      * @var MediaEntity|null
  60.      */
  61.     protected $media;
  62.     /**
  63.      * @var ProductConfiguratorSettingEntity|null
  64.      *
  65.      * @internal
  66.      */
  67.     private $configuratorSetting;
  68.     /**
  69.      * @internal
  70.      *
  71.      * @var bool
  72.      */
  73.     private $combinable;
  74.     public function getGroupId(): string
  75.     {
  76.         return $this->groupId;
  77.     }
  78.     public function setGroupId(string $groupId): void
  79.     {
  80.         $this->groupId $groupId;
  81.     }
  82.     public function getName(): ?string
  83.     {
  84.         return $this->name;
  85.     }
  86.     public function setName(?string $name): void
  87.     {
  88.         $this->name $name;
  89.     }
  90.     public function getColorHexCode(): ?string
  91.     {
  92.         return $this->colorHexCode;
  93.     }
  94.     public function setColorHexCode(?string $colorHexCode): void
  95.     {
  96.         $this->colorHexCode $colorHexCode;
  97.     }
  98.     public function getMediaId(): ?string
  99.     {
  100.         return $this->mediaId;
  101.     }
  102.     public function setMediaId(?string $mediaId): void
  103.     {
  104.         $this->mediaId $mediaId;
  105.     }
  106.     public function getGroup(): ?PropertyGroupEntity
  107.     {
  108.         return $this->group;
  109.     }
  110.     public function setGroup(?PropertyGroupEntity $group): void
  111.     {
  112.         $this->group $group;
  113.     }
  114.     public function getTranslations(): ?PropertyGroupOptionTranslationCollection
  115.     {
  116.         return $this->translations;
  117.     }
  118.     public function setTranslations(PropertyGroupOptionTranslationCollection $translations): void
  119.     {
  120.         $this->translations $translations;
  121.     }
  122.     public function getProductConfiguratorSettings(): ?ProductConfiguratorSettingCollection
  123.     {
  124.         return $this->productConfiguratorSettings;
  125.     }
  126.     public function setProductConfiguratorSettings(ProductConfiguratorSettingCollection $productConfiguratorSettings): void
  127.     {
  128.         $this->productConfiguratorSettings $productConfiguratorSettings;
  129.     }
  130.     public function getProductProperties(): ?ProductCollection
  131.     {
  132.         return $this->productProperties;
  133.     }
  134.     public function setProductProperties(ProductCollection $productProperties): void
  135.     {
  136.         $this->productProperties $productProperties;
  137.     }
  138.     public function getProductOptions(): ?ProductCollection
  139.     {
  140.         return $this->productOptions;
  141.     }
  142.     public function setProductOptions(ProductCollection $productOptions): void
  143.     {
  144.         $this->productOptions $productOptions;
  145.     }
  146.     public function getMedia(): ?MediaEntity
  147.     {
  148.         return $this->media;
  149.     }
  150.     public function setMedia(?MediaEntity $media): void
  151.     {
  152.         $this->media $media;
  153.     }
  154.     public function getPosition(): ?int
  155.     {
  156.         return $this->position;
  157.     }
  158.     public function setPosition(?int $position): void
  159.     {
  160.         $this->position $position;
  161.     }
  162.     public function getConfiguratorSetting(): ?ProductConfiguratorSettingEntity
  163.     {
  164.         return $this->configuratorSetting;
  165.     }
  166.     public function setConfiguratorSetting(ProductConfiguratorSettingEntity $configuratorSetting): void
  167.     {
  168.         $this->configuratorSetting $configuratorSetting;
  169.     }
  170.     public function getCombinable(): bool
  171.     {
  172.         return $this->combinable;
  173.     }
  174.     public function setCombinable(bool $combinable): void
  175.     {
  176.         $this->combinable $combinable;
  177.     }
  178. }