vendor/shopware/core/Content/Cms/SalesChannel/Struct/ImageStruct.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 ImageStruct extends Struct
  6. {
  7.     /**
  8.      * @var string|null
  9.      */
  10.     protected $mediaId;
  11.     /**
  12.      * @var string|null
  13.      */
  14.     protected $url;
  15.     /**
  16.      * @var bool|null
  17.      */
  18.     protected $newTab;
  19.     /**
  20.      * @var MediaEntity|null
  21.      */
  22.     protected $media;
  23.     public function getMedia(): ?MediaEntity
  24.     {
  25.         return $this->media;
  26.     }
  27.     public function setMedia(MediaEntity $media): void
  28.     {
  29.         $this->media $media;
  30.     }
  31.     public function getMediaId(): ?string
  32.     {
  33.         return $this->mediaId;
  34.     }
  35.     public function setMediaId(string $mediaId): void
  36.     {
  37.         $this->mediaId $mediaId;
  38.     }
  39.     public function getUrl(): ?string
  40.     {
  41.         return $this->url;
  42.     }
  43.     public function setUrl(?string $url): void
  44.     {
  45.         $this->url $url;
  46.     }
  47.     public function getNewTab(): ?bool
  48.     {
  49.         return $this->newTab;
  50.     }
  51.     public function setNewTab(?bool $newTab): void
  52.     {
  53.         $this->newTab $newTab;
  54.     }
  55.     public function getApiAlias(): string
  56.     {
  57.         return 'cms_image';
  58.     }
  59. }