vendor/shopware/core/Content/Property/PropertyGroupEntity.php line 11

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Content\Property;
  3. use Shopware\Core\Content\Property\Aggregate\PropertyGroupOption\PropertyGroupOptionCollection;
  4. use Shopware\Core\Content\Property\Aggregate\PropertyGroupTranslation\PropertyGroupTranslationCollection;
  5. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  6. use Shopware\Core\Framework\DataAbstractionLayer\EntityCustomFieldsTrait;
  7. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  8. class PropertyGroupEntity extends Entity
  9. {
  10.     use EntityIdTrait;
  11.     use EntityCustomFieldsTrait;
  12.     /**
  13.      * @var string|null
  14.      */
  15.     protected $name;
  16.     /**
  17.      * @var string
  18.      */
  19.     protected $displayType;
  20.     /**
  21.      * @var string
  22.      */
  23.     protected $sortingType;
  24.     /**
  25.      * @var string|null
  26.      */
  27.     protected $description;
  28.     /**
  29.      * @var int|null
  30.      */
  31.     protected $position;
  32.     /**
  33.      * @var bool
  34.      */
  35.     protected $filterable;
  36.     /**
  37.      * @var bool|null
  38.      */
  39.     protected $visibleOnProductDetailPage;
  40.     /**
  41.      * @var PropertyGroupOptionCollection|null
  42.      */
  43.     protected $options;
  44.     /**
  45.      * @var PropertyGroupTranslationCollection|null
  46.      */
  47.     protected $translations;
  48.     public function getName(): ?string
  49.     {
  50.         return $this->name;
  51.     }
  52.     public function setName(?string $name): void
  53.     {
  54.         $this->name $name;
  55.     }
  56.     public function getFilterable(): bool
  57.     {
  58.         return $this->filterable;
  59.     }
  60.     public function setFilterable(bool $filterable): void
  61.     {
  62.         $this->filterable $filterable;
  63.     }
  64.     public function getVisibleOnProductDetailPage(): bool
  65.     {
  66.         return $this->visibleOnProductDetailPage ?? false;
  67.     }
  68.     public function setVisibleOnProductDetailPage(bool $visibleOnProductDetailPage): void
  69.     {
  70.         $this->visibleOnProductDetailPage $visibleOnProductDetailPage;
  71.     }
  72.     public function getOptions(): ?PropertyGroupOptionCollection
  73.     {
  74.         return $this->options;
  75.     }
  76.     public function setOptions(PropertyGroupOptionCollection $options): void
  77.     {
  78.         $this->options $options;
  79.     }
  80.     public function getTranslations(): ?PropertyGroupTranslationCollection
  81.     {
  82.         return $this->translations;
  83.     }
  84.     public function setTranslations(PropertyGroupTranslationCollection $translations): void
  85.     {
  86.         $this->translations $translations;
  87.     }
  88.     public function getDescription(): ?string
  89.     {
  90.         return $this->description;
  91.     }
  92.     public function setDescription(?string $description): void
  93.     {
  94.         $this->description $description;
  95.     }
  96.     public function getPosition(): ?int
  97.     {
  98.         return $this->position;
  99.     }
  100.     public function setPosition(?int $position): void
  101.     {
  102.         $this->position $position;
  103.     }
  104.     public function getDisplayType(): string
  105.     {
  106.         return $this->displayType;
  107.     }
  108.     public function setDisplayType(string $displayType): void
  109.     {
  110.         $this->displayType $displayType;
  111.     }
  112.     public function getSortingType(): string
  113.     {
  114.         return $this->sortingType;
  115.     }
  116.     public function setSortingType(string $sortingType): void
  117.     {
  118.         $this->sortingType $sortingType;
  119.     }
  120. }