vendor/shopware/core/Content/Cms/SalesChannel/Struct/ImageSliderStruct.php line 7

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Content\Cms\SalesChannel\Struct;
  3. use Shopware\Core\Framework\Struct\Struct;
  4. class ImageSliderStruct extends Struct
  5. {
  6.     /**
  7.      * @var array|null
  8.      */
  9.     protected $navigation;
  10.     /**
  11.      * @var ImageSliderItemStruct[]|null
  12.      */
  13.     protected $sliderItems = [];
  14.     /**
  15.      * @return ImageSliderItemStruct[]|null
  16.      */
  17.     public function getSliderItems(): ?array
  18.     {
  19.         return $this->sliderItems;
  20.     }
  21.     /**
  22.      * @param ImageSliderItemStruct[]|null $sliderItems
  23.      */
  24.     public function setSliderItems(?array $sliderItems): void
  25.     {
  26.         $this->sliderItems $sliderItems;
  27.     }
  28.     public function addSliderItem(ImageSliderItemStruct $sliderItem): void
  29.     {
  30.         $this->sliderItems[] = $sliderItem;
  31.     }
  32.     public function getNavigation(): ?array
  33.     {
  34.         return $this->navigation;
  35.     }
  36.     public function setNavigation(?array $navigation): void
  37.     {
  38.         $this->navigation $navigation;
  39.     }
  40.     public function getApiAlias(): string
  41.     {
  42.         return 'cms_image_slider';
  43.     }
  44. }