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

Open in your IDE?
  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.     protected ?bool $displayParent;
  9.     protected ?string $mainVariantId;
  10.     /**
  11.      * @var array<string, string>|null
  12.      */
  13.     protected ?array $configuratorGroupConfig;
  14.     /**
  15.      * @param array<string, string>|null $configuratorGroupConfig
  16.      */
  17.     public function __construct(?bool $displayParent, ?string $mainVariantId, ?array $configuratorGroupConfig)
  18.     {
  19.         $this->displayParent $displayParent;
  20.         $this->mainVariantId $mainVariantId;
  21.         $this->configuratorGroupConfig $configuratorGroupConfig;
  22.     }
  23.     public function getDisplayParent(): ?bool
  24.     {
  25.         return $this->displayParent;
  26.     }
  27.     public function getMainVariantId(): ?string
  28.     {
  29.         return $this->mainVariantId;
  30.     }
  31.     /**
  32.      * @return array<string, string>|null
  33.      */
  34.     public function getConfiguratorGroupConfig(): ?array
  35.     {
  36.         return $this->configuratorGroupConfig;
  37.     }
  38. }