<?php
namespace App\Entity\Gallery;
use App\Entity\AbstractBase;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* @ORM\Table(name="vulco_gallery_video")
* @ORM\Entity(repositoryClass=GalleryVideoRepository::class)
* @Gedmo\SoftDeleteable(fieldName="removedAt", timeAware=false)
*/
class GalleryVideo extends AbstractBase
{
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private ?string $name = null;
/**
* @ORM\Column(type="text", length=10000, nullable=false)
*/
private string $link;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Gallery\GalleryAlbum", inversedBy="videos")
*
* @ORM\JoinColumn(name="album_id", referencedColumnName="id")
*/
private GalleryAlbum $album;
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): self
{
$this->name = $name;
return $this;
}
public function getLink(): string
{
return $this->link;
}
public function setLink(string $link): self
{
$this->link = $link;
return $this;
}
public function getAlbum(): GalleryAlbum
{
return $this->album;
}
public function setAlbum(GalleryAlbum $album): self
{
$this->album = $album;
return $this;
}
}