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

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