src/Entity/Gallery/GalleryVideo.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gallery;
  3. use App\Entity\AbstractBase;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. /**
  7.  * @ORM\Table(name="vulco_gallery_video")
  8.  * @ORM\Entity(repositoryClass=GalleryVideoRepository::class)
  9.  * @Gedmo\SoftDeleteable(fieldName="removedAt", timeAware=false)
  10.  */
  11. class GalleryVideo extends AbstractBase
  12. {
  13.     /**
  14.      * @ORM\Column(type="string", length=255, nullable=true)
  15.      */
  16.     private ?string $name null;
  17.     /**
  18.      * @ORM\Column(type="text", length=10000, nullable=false)
  19.      */
  20.     private string $link;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity="App\Entity\Gallery\GalleryAlbum", inversedBy="videos")
  23.      *
  24.      * @ORM\JoinColumn(name="album_id", referencedColumnName="id")
  25.      */
  26.     private GalleryAlbum $album;
  27.     public function getName(): ?string
  28.     {
  29.         return $this->name;
  30.     }
  31.     public function setName(?string $name): self
  32.     {
  33.         $this->name $name;
  34.         return $this;
  35.     }
  36.     public function getLink(): string
  37.     {
  38.         return $this->link;
  39.     }
  40.     public function setLink(string $link): self
  41.     {
  42.         $this->link $link;
  43.         return $this;
  44.     }
  45.     public function getAlbum(): GalleryAlbum
  46.     {
  47.         return $this->album;
  48.     }
  49.     public function setAlbum(GalleryAlbum $album): self
  50.     {
  51.         $this->album $album;
  52.         return $this;
  53.     }
  54. }