<?php
declare(strict_types=1);
namespace Fourtwosix\Attachments\Core\Content\Product;
use Shopware\Core\Content\Media\MediaEntity;
use Shopware\Core\Content\Product\ProductEntity;
use Shopware\Core\Framework\DataAbstractionLayer\Entity;
use Shopware\Core\Framework\DataAbstractionLayer\EntityCustomFieldsTrait;
use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
use Shopware\Core\System\Language\LanguageCollection;
class AttachmentEntity extends Entity
{
use EntityIdTrait;
use EntityCustomFieldsTrait;
protected ?self $parent = null;
protected ?string $parentId;
protected ?AttachmentCollection $children = null;
protected ?string $mediaId;
protected ?MediaEntity $media;
protected ?LanguageCollection $languages = null;
protected ?string $productId;
protected ?ProductEntity $product;
public function getProductId(): ?string
{
return $this->productId;
}
public function setProductId(string $productId): void
{
$this->productId = $productId;
}
public function getProduct(): ?ProductEntity
{
return $this->product;
}
public function setProduct(ProductEntity $product): void
{
$this->product = $product;
}
public function getMediaId(): ?string
{
return $this->mediaId;
}
public function setMediaId(string $mediaId): void
{
$this->mediaId = $mediaId;
}
public function getMedia(): ?MediaEntity
{
return $this->media;
}
public function setMedia(MediaEntity $media): void
{
$this->media = $media;
}
public function getLanguages(): LanguageCollection
{
return $this->languages;
}
public function setLanguages(LanguageCollection $languages): void
{
$this->languages = $languages;
}
public function isPrivate(): bool
{
return $this->private;
}
public function setPrivate(bool $private): void
{
$this->private = $private;
}
}