<?php declare(strict_types=1);namespace Shopware\Core\Content\Product\Aggregate\ProductMedia;use Shopware\Core\Content\Media\MediaEntity;use Shopware\Core\Content\Product\ProductEntity;use Shopware\Core\Framework\DataAbstractionLayer\Entity;use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;class ProductMediaEntity extends Entity{ use EntityIdTrait; /** * @var string */ protected $productId; /** * @var string */ protected $mediaId; /** * @var int */ protected $position; /** * @var MediaEntity|null */ protected $media; /** * @var ProductEntity|null */ protected $product; /** * @var array|null */ protected $customFields; public function getProductId(): string { return $this->productId; } public function setProductId(string $productId): void { $this->productId = $productId; } public function getMediaId(): string { return $this->mediaId; } public function setMediaId(string $mediaId): void { $this->mediaId = $mediaId; } public function getPosition(): int { return $this->position; } public function setPosition(int $position): void { $this->position = $position; } public function getMedia(): ?MediaEntity { return $this->media; } public function setMedia(MediaEntity $media): void { $this->media = $media; } public function getProduct(): ?ProductEntity { return $this->product; } public function setProduct(ProductEntity $product): void { $this->product = $product; } public function getCustomFields(): ?array { return $this->customFields; } public function setCustomFields(?array $customFields): void { $this->customFields = $customFields; }}