<?php
namespace App\Entity;
use App\Repository\FilmProjectDetailsRepository;
use App\String\Constant;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: FilmProjectDetailsRepository::class)]
class FilmProjectDetails
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'boolean', nullable: true)]
private $isEpisodes;
#[ORM\Column(type: 'integer', nullable: true)]
private $episodeNumber;
#[ORM\Column(type: 'boolean', nullable: true)]
private $isShortFilm;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $shortFilmLength;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $productionLength;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $projectHeroImage;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $projectTrailerLink;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $projectTrailerPassword;
#[ORM\Column(type: 'boolean', nullable: true)]
private $isCompleted;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $projectCompleteLink;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $screenerPassword;
#[ORM\OneToOne(inversedBy: 'filmProjectDetails', targetEntity: FilmProject::class, cascade: ['persist', 'remove'])]
private $filmProject;
#[ORM\Column(length: 255, nullable: true)]
private ?string $twitter = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $instagram = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $facebook = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $youtube = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $vimeo = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $website = null;
#[ORM\Column(nullable: true)]
private ?bool $isDisplayDonation = null;
public function getId(): ?int
{
return $this->id;
}
public function isIsEpisodes(): ?bool
{
return $this->isEpisodes;
}
public function setIsEpisodes(?bool $isEpisodes): self
{
$this->isEpisodes = $isEpisodes;
return $this;
}
public function getEpisodeNumber(): ?int
{
return $this->episodeNumber;
}
public function setEpisodeNumber(?int $episodeNumber): self
{
$this->episodeNumber = $episodeNumber;
return $this;
}
public function isIsShortFilm(): ?bool
{
return $this->isShortFilm;
}
public function setIsShortFilm(?bool $isShortFilm): self
{
$this->isShortFilm = $isShortFilm;
return $this;
}
public function getShortFilmLength(): ?string
{
return $this->shortFilmLength;
}
public function setShortFilmLength(?string $shortFilmLength): self
{
$this->shortFilmLength = $shortFilmLength;
return $this;
}
public function getProductionLength(): ?string
{
return $this->productionLength;
}
public function setProductionLength(?string $productionLength): self
{
$this->productionLength = $productionLength;
return $this;
}
public function getProjectHeroImage(): ?string
{
return $this->projectHeroImage;
}
public function setProjectHeroImage(?string $projectHeroImage): self
{
$this->projectHeroImage = $projectHeroImage;
return $this;
}
public function getProjectHeroImageUrl(): ?string
{
$url = '';
if ($this->projectHeroImage) {
$url = '/uploads/projects/' . $this->projectHeroImage;
}
return $url;
}
public function getProjectTrailerLink(): ?string
{
return $this->projectTrailerLink;
}
public function setProjectTrailerLink(?string $projectTrailerLink): self
{
$this->projectTrailerLink = $projectTrailerLink;
return $this;
}
public function getProjectTrailerPassword(): ?string
{
return $this->projectTrailerPassword;
}
public function setProjectTrailerPassword(?string $projectTrailerPassword): self
{
$this->projectTrailerPassword = $projectTrailerPassword;
return $this;
}
public function isIsCompleted(): ?bool
{
return $this->isCompleted;
}
public function setIsCompleted(?bool $isCompleted): self
{
$this->isCompleted = $isCompleted;
return $this;
}
public function getProjectCompleteLink(): ?string
{
return $this->projectCompleteLink;
}
public function setProjectCompleteLink(?string $projectCompleteLink): self
{
$this->projectCompleteLink = $projectCompleteLink;
return $this;
}
public function getScreenerPassword(): ?string
{
return $this->screenerPassword;
}
public function setScreenerPassword(?string $screenerPassword): self
{
$this->screenerPassword = $screenerPassword;
return $this;
}
public function getFilmProject(): ?FilmProject
{
return $this->filmProject;
}
public function setFilmProject(?FilmProject $filmProject): self
{
$this->filmProject = $filmProject;
return $this;
}
public function getTwitter(): ?string
{
return $this->twitter;
}
public function setTwitter(?string $twitter): self
{
$this->twitter = $twitter;
return $this;
}
public function getInstagram(): ?string
{
return $this->instagram;
}
public function setInstagram(?string $instagram): self
{
$this->instagram = $instagram;
return $this;
}
public function getFacebook(): ?string
{
return $this->facebook;
}
public function setFacebook(?string $facebook): self
{
$this->facebook = $facebook;
return $this;
}
public function getYoutube(): ?string
{
return $this->youtube;
}
public function setYoutube(?string $youtube): self
{
$this->youtube = $youtube;
return $this;
}
public function getVimeo(): ?string
{
return $this->vimeo;
}
public function setVimeo(?string $vimeo): self
{
$this->vimeo = $vimeo;
return $this;
}
public function getWebsite(): ?string
{
return $this->website;
}
public function setWebsite(?string $website): self
{
$this->website = $website;
return $this;
}
public function isIsDisplayDonation(): ?bool
{
return $this->isDisplayDonation;
}
public function setIsDisplayDonation(?bool $isDisplayDonation): self
{
$this->isDisplayDonation = $isDisplayDonation;
return $this;
}
}