src/Entity/Product/ProductTranslation.php line 14

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Product;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Sylius\Component\Core\Model\ProductTranslation as BaseProductTranslation;
  6. /**
  7.  * @ORM\Entity
  8.  * @ORM\Table(name="sylius_product_translation")
  9.  */
  10. class ProductTranslation extends BaseProductTranslation
  11. {
  12.     /**
  13.      * @ORM\Column(type="string", nullable=true)
  14.      */
  15.     private ?string $videoUrl;
  16.     public function getVideoUrl(): ?string
  17.     {
  18.         return $this->videoUrl;
  19.     }
  20.     /**
  21.      * @param mixed $videoUrl
  22.      */
  23.     public function setVideoUrl($videoUrl): self
  24.     {
  25.         $this->videoUrl $videoUrl;
  26.         return $this;
  27.     }
  28. }