vendor/shopware/core/Content/Product/Aggregate/ProductMedia/ProductMediaEntity.php line 10

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Content\Product\Aggregate\ProductMedia;
  3. use Shopware\Core\Content\Media\MediaEntity;
  4. use Shopware\Core\Content\Product\ProductEntity;
  5. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  6. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  7. class ProductMediaEntity extends Entity
  8. {
  9.     use EntityIdTrait;
  10.     /**
  11.      * @var string
  12.      */
  13.     protected $productId;
  14.     /**
  15.      * @var string
  16.      */
  17.     protected $mediaId;
  18.     /**
  19.      * @var int
  20.      */
  21.     protected $position;
  22.     /**
  23.      * @var MediaEntity|null
  24.      */
  25.     protected $media;
  26.     /**
  27.      * @var ProductEntity|null
  28.      */
  29.     protected $product;
  30.     /**
  31.      * @var array|null
  32.      */
  33.     protected $customFields;
  34.     public function getProductId(): string
  35.     {
  36.         return $this->productId;
  37.     }
  38.     public function setProductId(string $productId): void
  39.     {
  40.         $this->productId $productId;
  41.     }
  42.     public function getMediaId(): string
  43.     {
  44.         return $this->mediaId;
  45.     }
  46.     public function setMediaId(string $mediaId): void
  47.     {
  48.         $this->mediaId $mediaId;
  49.     }
  50.     public function getPosition(): int
  51.     {
  52.         return $this->position;
  53.     }
  54.     public function setPosition(int $position): void
  55.     {
  56.         $this->position $position;
  57.     }
  58.     public function getMedia(): ?MediaEntity
  59.     {
  60.         return $this->media;
  61.     }
  62.     public function setMedia(MediaEntity $media): void
  63.     {
  64.         $this->media $media;
  65.     }
  66.     public function getProduct(): ?ProductEntity
  67.     {
  68.         return $this->product;
  69.     }
  70.     public function setProduct(ProductEntity $product): void
  71.     {
  72.         $this->product $product;
  73.     }
  74.     public function getCustomFields(): ?array
  75.     {
  76.         return $this->customFields;
  77.     }
  78.     public function setCustomFields(?array $customFields): void
  79.     {
  80.         $this->customFields $customFields;
  81.     }
  82. }