vendor/shopware/core/Content/Cms/SalesChannel/Struct/ImageSliderItemStruct.php line 8

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Content\Cms\SalesChannel\Struct;
  3. use Shopware\Core\Content\Media\MediaEntity;
  4. use Shopware\Core\Framework\Struct\Struct;
  5. class ImageSliderItemStruct extends Struct
  6. {
  7.     /**
  8.      * @var string|null
  9.      */
  10.     protected $url;
  11.     /**
  12.      * @var bool|null
  13.      */
  14.     protected $newTab;
  15.     /**
  16.      * @var MediaEntity|null
  17.      */
  18.     protected $media;
  19.     public function getMedia(): ?MediaEntity
  20.     {
  21.         return $this->media;
  22.     }
  23.     public function setMedia(?MediaEntity $media): void
  24.     {
  25.         $this->media $media;
  26.     }
  27.     public function getUrl(): ?string
  28.     {
  29.         return $this->url;
  30.     }
  31.     public function setUrl(?string $url): void
  32.     {
  33.         $this->url $url;
  34.     }
  35.     public function getNewTab(): ?bool
  36.     {
  37.         return $this->newTab;
  38.     }
  39.     public function setNewTab(?bool $newTab): void
  40.     {
  41.         $this->newTab $newTab;
  42.     }
  43.     public function getApiAlias(): string
  44.     {
  45.         return 'cms_image_slider_item';
  46.     }
  47. }