vendor/shopware/core/Content/Product/DataAbstractionLayer/VariantListingConfig.php line 7

  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Content\Product\DataAbstractionLayer;
  3. use Shopware\Core\Framework\Log\Package;
  4. use Shopware\Core\Framework\Struct\Struct;
  5. #[Package('core')]
  6. class VariantListingConfig extends Struct
  7. {
  8.     /**
  9.      * @param array<string, string>|null $configuratorGroupConfig
  10.      */
  11.     public function __construct(
  12.         protected ?bool $displayParent,
  13.         protected ?string $mainVariantId,
  14.         protected ?array $configuratorGroupConfig
  15.     ) {
  16.     }
  17.     public function getDisplayParent(): ?bool
  18.     {
  19.         return $this->displayParent;
  20.     }
  21.     public function getMainVariantId(): ?string
  22.     {
  23.         return $this->mainVariantId;
  24.     }
  25.     /**
  26.      * @return array<string, string>|null
  27.      */
  28.     public function getConfiguratorGroupConfig(): ?array
  29.     {
  30.         return $this->configuratorGroupConfig;
  31.     }
  32. }