<?php
namespace Nd\Voorwinden\Extension\Content\Product;
use Shopware\Core\Content\Product\Aggregate\ProductMedia\ProductMediaEntity;
use Shopware\Core\Content\Product\ProductEntity;
use Shopware\Core\Framework\DataAbstractionLayer\Entity;
class SecondMediaExtensionEntity extends Entity
{
// protected string $id;
protected string $productId;
protected string $secondMediaId;
protected ?ProductEntity $product;
protected ?ProductMediaEntity $secondMedia;
public function getId(): ?string
{
return $this->id;
}
public function setId(string $id): void
{
$this->id = $id;
}
public function getProductId(): ?string
{
return $this->productId;
}
public function setProductId(string $productId): void
{
$this->productId = $productId;
}
public function getSecondMediaId(): ?string
{
return $this->secondMediaId;
}
public function setSecondMediaId(string $secondMediaId): void
{
$this->secondMediaId = $secondMediaId;
}
public function getProduct(): ?ProductEntity
{
return $this->product;
}
public function setProduct(ProductEntity $product): void
{
$this->product = $product;
}
public function getSecondMedia(): ?ProductMediaEntity
{
return $this->secondMedia;
}
public function setSecondMedia(ProductMediaEntity $secondMedia): void
{
$this->secondMedia = $secondMedia;
}
}