custom/plugins/fourtwosixattachments/src/Core/Content/Product/AttachmentEntity.php line 14

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Fourtwosix\Attachments\Core\Content\Product;
  4. use Shopware\Core\Content\Media\MediaEntity;
  5. use Shopware\Core\Content\Product\ProductEntity;
  6. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  7. use Shopware\Core\Framework\DataAbstractionLayer\EntityCustomFieldsTrait;
  8. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  9. use Shopware\Core\System\Language\LanguageCollection;
  10. class AttachmentEntity extends Entity
  11. {
  12.     use EntityIdTrait;
  13.     use EntityCustomFieldsTrait;
  14.     protected ?self $parent null;
  15.     protected ?string $parentId;
  16.     protected ?AttachmentCollection $children null;
  17.     protected ?string $mediaId;
  18.     protected ?MediaEntity $media;
  19.     protected ?LanguageCollection $languages null;
  20.     protected ?string $productId;
  21.     protected ?ProductEntity $product;
  22.     public function getProductId(): ?string
  23.     {
  24.         return $this->productId;
  25.     }
  26.     public function setProductId(string $productId): void
  27.     {
  28.         $this->productId $productId;
  29.     }
  30.     public function getProduct(): ?ProductEntity
  31.     {
  32.         return $this->product;
  33.     }
  34.     public function setProduct(ProductEntity $product): void
  35.     {
  36.         $this->product $product;
  37.     }
  38.     public function getMediaId(): ?string
  39.     {
  40.         return $this->mediaId;
  41.     }
  42.     public function setMediaId(string $mediaId): void
  43.     {
  44.         $this->mediaId $mediaId;
  45.     }
  46.     public function getMedia(): ?MediaEntity
  47.     {
  48.         return $this->media;
  49.     }
  50.     public function setMedia(MediaEntity $media): void
  51.     {
  52.         $this->media $media;
  53.     }
  54.     public function getLanguages(): LanguageCollection
  55.     {
  56.         return $this->languages;
  57.     }
  58.     public function setLanguages(LanguageCollection $languages): void
  59.     {
  60.         $this->languages $languages;
  61.     }
  62.     public function isPrivate(): bool
  63.     {
  64.         return $this->private;
  65.     }
  66.     public function setPrivate(bool $private): void
  67.     {
  68.         $this->private $private;
  69.     }
  70. }