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

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