custom/plugins/AcrisProductVideoCS/src/Custom/ProductVideoEntity.php line 11

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Acris\ProductVideo\Custom;
  3. use Acris\ProductVideo\Custom\Aggregate\ProductVideoTranslation\ProductVideoTranslationCollection;
  4. use Shopware\Core\Content\Media\Aggregate\MediaTranslation\MediaTranslationCollection;
  5. use Shopware\Core\Content\Media\MediaEntity;
  6. use Shopware\Core\Content\Product\ProductEntity;
  7. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  8. class ProductVideoEntity extends MediaEntity
  9. {
  10.     use EntityIdTrait;
  11.     /**
  12.      * @var string
  13.      */
  14.     protected $productId;
  15.     /**
  16.      * @var ProductEntity|null
  17.      */
  18.     protected $product;
  19.     /**
  20.      * @var string
  21.      */
  22.     protected $productVideoId;
  23.     /**
  24.      * @var int|null
  25.      */
  26.     protected $priority;
  27.     /**
  28.      * @var string|null
  29.      */
  30.     protected $type;
  31.     /**
  32.      * @var ProductVideoTranslationCollection|null
  33.      */
  34.     protected $translations;
  35.     /**
  36.      * @return string
  37.      */
  38.     public function getProductId(): string
  39.     {
  40.         return $this->productId;
  41.     }
  42.     /**
  43.      * @param string $productId
  44.      */
  45.     public function setProductId(string $productId): void
  46.     {
  47.         $this->productId $productId;
  48.     }
  49.     /**
  50.      * @return string
  51.      */
  52.     public function getProductVideoId(): string
  53.     {
  54.         return $this->productVideoId;
  55.     }
  56.     /**
  57.      * @param string $productVideoId
  58.      */
  59.     public function setProductVideoId(string $productVideoId): void
  60.     {
  61.         $this->productVideoId $productVideoId;
  62.     }
  63.     /**
  64.      * @return MediaTranslationCollection|null
  65.      */
  66.     public function getTranslations(): ?MediaTranslationCollection
  67.     {
  68.         return $this->translations;
  69.     }
  70.     /**
  71.      * @param MediaTranslationCollection|null $translations
  72.      */
  73.     public function setTranslations(?MediaTranslationCollection $translations): void
  74.     {
  75.         $this->translations $translations;
  76.     }
  77.     /**
  78.      * @return ProductEntity|null
  79.      */
  80.     public function getProduct(): ?ProductEntity
  81.     {
  82.         return $this->product;
  83.     }
  84.     /**
  85.      * @param ProductEntity|null $product
  86.      */
  87.     public function setProduct(?ProductEntity $product): void
  88.     {
  89.         $this->product $product;
  90.     }
  91.     /**
  92.      * @return int|null
  93.      */
  94.     public function getPriority(): ?int
  95.     {
  96.         return $this->priority;
  97.     }
  98.     /**
  99.      * @param int|null $priority
  100.      */
  101.     public function setPriority(?int $priority): void
  102.     {
  103.         $this->priority $priority;
  104.     }
  105.     /**
  106.      * @return string|null
  107.      */
  108.     public function getType(): ?string
  109.     {
  110.         return $this->type;
  111.     }
  112.     /**
  113.      * @param string|null $type
  114.      */
  115.     public function setType(?string $type): void
  116.     {
  117.         $this->type $type;
  118.     }
  119. }