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

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