vendor/shopware/core/Content/Product/Aggregate/ProductManufacturer/ProductManufacturerEntity.php line 12

  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Content\Product\Aggregate\ProductManufacturer;
  3. use Shopware\Core\Content\Media\MediaEntity;
  4. use Shopware\Core\Content\Product\Aggregate\ProductManufacturerTranslation\ProductManufacturerTranslationCollection;
  5. use Shopware\Core\Content\Product\ProductCollection;
  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\Framework\Log\Package;
  10. #[Package('inventory')]
  11. class ProductManufacturerEntity extends Entity
  12. {
  13.     use EntityCustomFieldsTrait;
  14.     use EntityIdTrait;
  15.     /**
  16.      * @var string|null
  17.      */
  18.     protected $mediaId;
  19.     /**
  20.      * @var string|null
  21.      */
  22.     protected $name;
  23.     /**
  24.      * @var string|null
  25.      */
  26.     protected $link;
  27.     /**
  28.      * @var string|null
  29.      */
  30.     protected $description;
  31.     /**
  32.      * @var MediaEntity|null
  33.      */
  34.     protected $media;
  35.     /**
  36.      * @var ProductManufacturerTranslationCollection|null
  37.      */
  38.     protected $translations;
  39.     /**
  40.      * @var ProductCollection|null
  41.      */
  42.     protected $products;
  43.     public function getMediaId(): ?string
  44.     {
  45.         return $this->mediaId;
  46.     }
  47.     public function setMediaId(?string $mediaId): void
  48.     {
  49.         $this->mediaId $mediaId;
  50.     }
  51.     public function getName(): ?string
  52.     {
  53.         return $this->name;
  54.     }
  55.     public function setName(?string $name): void
  56.     {
  57.         $this->name $name;
  58.     }
  59.     public function getLink(): ?string
  60.     {
  61.         return $this->link;
  62.     }
  63.     public function setLink(?string $link): void
  64.     {
  65.         $this->link $link;
  66.     }
  67.     public function getDescription(): ?string
  68.     {
  69.         return $this->description;
  70.     }
  71.     public function setDescription(?string $description): void
  72.     {
  73.         $this->description $description;
  74.     }
  75.     public function getMedia(): ?MediaEntity
  76.     {
  77.         return $this->media;
  78.     }
  79.     public function setMedia(MediaEntity $media): void
  80.     {
  81.         $this->media $media;
  82.     }
  83.     public function getTranslations(): ?ProductManufacturerTranslationCollection
  84.     {
  85.         return $this->translations;
  86.     }
  87.     public function setTranslations(ProductManufacturerTranslationCollection $translations): void
  88.     {
  89.         $this->translations $translations;
  90.     }
  91.     public function getProducts(): ?ProductCollection
  92.     {
  93.         return $this->products;
  94.     }
  95.     public function setProducts(ProductCollection $products): void
  96.     {
  97.         $this->products $products;
  98.     }
  99. }