vendor/shopware/core/Content/Cms/SalesChannel/Struct/BuyBoxStruct.php line 9

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Content\Cms\SalesChannel\Struct;
  3. use Shopware\Core\Content\Product\SalesChannel\SalesChannelProductEntity;
  4. use Shopware\Core\Content\Property\PropertyGroupCollection;
  5. use Shopware\Core\Framework\Struct\Struct;
  6. class BuyBoxStruct extends Struct
  7. {
  8.     /**
  9.      * @var string|null
  10.      */
  11.     protected $productId;
  12.     /**
  13.      * @var int
  14.      */
  15.     protected $totalReviews;
  16.     /**
  17.      * @var SalesChannelProductEntity|null
  18.      */
  19.     protected $product;
  20.     /**
  21.      * @var PropertyGroupCollection|null
  22.      */
  23.     protected $configuratorSettings;
  24.     public function getProduct(): ?SalesChannelProductEntity
  25.     {
  26.         return $this->product;
  27.     }
  28.     public function getConfiguratorSettings(): ?PropertyGroupCollection
  29.     {
  30.         return $this->configuratorSettings;
  31.     }
  32.     public function setConfiguratorSettings(?PropertyGroupCollection $configuratorSettings): void
  33.     {
  34.         $this->configuratorSettings $configuratorSettings;
  35.     }
  36.     public function setProduct(SalesChannelProductEntity $product): void
  37.     {
  38.         $this->product $product;
  39.     }
  40.     public function getProductId(): ?string
  41.     {
  42.         return $this->productId;
  43.     }
  44.     public function setProductId(string $productId): void
  45.     {
  46.         $this->productId $productId;
  47.     }
  48.     public function getTotalReviews(): ?int
  49.     {
  50.         return $this->totalReviews;
  51.     }
  52.     public function setTotalReviews(int $totalReviews): void
  53.     {
  54.         $this->totalReviews $totalReviews;
  55.     }
  56.     public function getApiAlias(): string
  57.     {
  58.         return 'cms_buy_box';
  59.     }
  60. }