vendor/shopware/core/Content/Cms/SalesChannel/Struct/ProductSliderStruct.php line 10

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Content\Cms\SalesChannel\Struct;
  3. use Shopware\Core\Content\Product\ProductCollection;
  4. use Shopware\Core\Framework\Log\Package;
  5. use Shopware\Core\Framework\Struct\Struct;
  6. #[Package('content')]
  7. class ProductSliderStruct extends Struct
  8. {
  9.     /**
  10.      * @var ProductCollection|null
  11.      */
  12.     protected $products null;
  13.     protected ?string $streamId null;
  14.     public function getProducts(): ?ProductCollection
  15.     {
  16.         return $this->products;
  17.     }
  18.     public function setProducts(ProductCollection $products): void
  19.     {
  20.         $this->products $products;
  21.     }
  22.     public function getApiAlias(): string
  23.     {
  24.         return 'cms_product_slider';
  25.     }
  26.     public function getStreamId(): ?string
  27.     {
  28.         return $this->streamId;
  29.     }
  30.     public function setStreamId(?string $streamId): void
  31.     {
  32.         $this->streamId $streamId;
  33.     }
  34. }