src/Entity/FilmProjectDetails.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FilmProjectDetailsRepository;
  4. use App\String\Constant;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassFilmProjectDetailsRepository::class)]
  7. class FilmProjectDetails
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column(type'integer')]
  12.     private $id;
  13.     #[ORM\Column(type'boolean'nullabletrue)]
  14.     private $isEpisodes;
  15.     #[ORM\Column(type'integer'nullabletrue)]
  16.     private $episodeNumber;
  17.     #[ORM\Column(type'boolean'nullabletrue)]
  18.     private $isShortFilm;
  19.     #[ORM\Column(type'string'length255nullabletrue)]
  20.     private $shortFilmLength;
  21.     #[ORM\Column(type'string'length255nullabletrue)]
  22.     private $productionLength;
  23.     #[ORM\Column(type'string'length255nullabletrue)]
  24.     private $projectHeroImage;
  25.     #[ORM\Column(type'string'length255nullabletrue)]
  26.     private $projectTrailerLink;
  27.     #[ORM\Column(type'string'length255nullabletrue)]
  28.     private $projectTrailerPassword;
  29.     #[ORM\Column(type'boolean'nullabletrue)]
  30.     private $isCompleted;
  31.     #[ORM\Column(type'string'length255nullabletrue)]
  32.     private $projectCompleteLink;
  33.     #[ORM\Column(type'string'length255nullabletrue)]
  34.     private $screenerPassword;
  35.     #[ORM\OneToOne(inversedBy'filmProjectDetails'targetEntityFilmProject::class, cascade: ['persist''remove'])]
  36.     private $filmProject;
  37.     #[ORM\Column(length255nullabletrue)]
  38.     private ?string $twitter null;
  39.     #[ORM\Column(length255nullabletrue)]
  40.     private ?string $instagram null;
  41.     #[ORM\Column(length255nullabletrue)]
  42.     private ?string $facebook null;
  43.     #[ORM\Column(length255nullabletrue)]
  44.     private ?string $youtube null;
  45.     #[ORM\Column(length255nullabletrue)]
  46.     private ?string $vimeo null;
  47.     #[ORM\Column(length255nullabletrue)]
  48.     private ?string $website null;
  49.     #[ORM\Column(nullabletrue)]
  50.     private ?bool $isDisplayDonation null;
  51.     public function getId(): ?int
  52.     {
  53.         return $this->id;
  54.     }
  55.     public function isIsEpisodes(): ?bool
  56.     {
  57.         return $this->isEpisodes;
  58.     }
  59.     public function setIsEpisodes(?bool $isEpisodes): self
  60.     {
  61.         $this->isEpisodes $isEpisodes;
  62.         return $this;
  63.     }
  64.     public function getEpisodeNumber(): ?int
  65.     {
  66.         return $this->episodeNumber;
  67.     }
  68.     public function setEpisodeNumber(?int $episodeNumber): self
  69.     {
  70.         $this->episodeNumber $episodeNumber;
  71.         return $this;
  72.     }
  73.     public function isIsShortFilm(): ?bool
  74.     {
  75.         return $this->isShortFilm;
  76.     }
  77.     public function setIsShortFilm(?bool $isShortFilm): self
  78.     {
  79.         $this->isShortFilm $isShortFilm;
  80.         return $this;
  81.     }
  82.     public function getShortFilmLength(): ?string
  83.     {
  84.         return $this->shortFilmLength;
  85.     }
  86.     public function setShortFilmLength(?string $shortFilmLength): self
  87.     {
  88.         $this->shortFilmLength $shortFilmLength;
  89.         return $this;
  90.     }
  91.     public function getProductionLength(): ?string
  92.     {
  93.         return $this->productionLength;
  94.     }
  95.     public function setProductionLength(?string $productionLength): self
  96.     {
  97.         $this->productionLength $productionLength;
  98.         return $this;
  99.     }
  100.     public function getProjectHeroImage(): ?string
  101.     {
  102.         return $this->projectHeroImage;
  103.     }
  104.     public function setProjectHeroImage(?string $projectHeroImage): self
  105.     {
  106.         $this->projectHeroImage $projectHeroImage;
  107.         return $this;
  108.     }
  109.     public function getProjectHeroImageUrl(): ?string
  110.     {
  111.         $url '';
  112.         if ($this->projectHeroImage) {
  113.             $url '/uploads/projects/' $this->projectHeroImage;
  114.         }
  115.         return $url;
  116.     }
  117.     public function getProjectTrailerLink(): ?string
  118.     {
  119.         return $this->projectTrailerLink;
  120.     }
  121.     public function setProjectTrailerLink(?string $projectTrailerLink): self
  122.     {
  123.         $this->projectTrailerLink $projectTrailerLink;
  124.         return $this;
  125.     }
  126.     public function getProjectTrailerPassword(): ?string
  127.     {
  128.         return $this->projectTrailerPassword;
  129.     }
  130.     public function setProjectTrailerPassword(?string $projectTrailerPassword): self
  131.     {
  132.         $this->projectTrailerPassword $projectTrailerPassword;
  133.         return $this;
  134.     }
  135.     public function isIsCompleted(): ?bool
  136.     {
  137.         return $this->isCompleted;
  138.     }
  139.     public function setIsCompleted(?bool $isCompleted): self
  140.     {
  141.         $this->isCompleted $isCompleted;
  142.         return $this;
  143.     }
  144.     public function getProjectCompleteLink(): ?string
  145.     {
  146.         return $this->projectCompleteLink;
  147.     }
  148.     public function setProjectCompleteLink(?string $projectCompleteLink): self
  149.     {
  150.         $this->projectCompleteLink $projectCompleteLink;
  151.         return $this;
  152.     }
  153.     public function getScreenerPassword(): ?string
  154.     {
  155.         return $this->screenerPassword;
  156.     }
  157.     public function setScreenerPassword(?string $screenerPassword): self
  158.     {
  159.         $this->screenerPassword $screenerPassword;
  160.         return $this;
  161.     }
  162.     public function getFilmProject(): ?FilmProject
  163.     {
  164.         return $this->filmProject;
  165.     }
  166.     public function setFilmProject(?FilmProject $filmProject): self
  167.     {
  168.         $this->filmProject $filmProject;
  169.         return $this;
  170.     }
  171.     public function getTwitter(): ?string
  172.     {
  173.         return $this->twitter;
  174.     }
  175.     public function setTwitter(?string $twitter): self
  176.     {
  177.         $this->twitter $twitter;
  178.         return $this;
  179.     }
  180.     public function getInstagram(): ?string
  181.     {
  182.         return $this->instagram;
  183.     }
  184.     public function setInstagram(?string $instagram): self
  185.     {
  186.         $this->instagram $instagram;
  187.         return $this;
  188.     }
  189.     public function getFacebook(): ?string
  190.     {
  191.         return $this->facebook;
  192.     }
  193.     public function setFacebook(?string $facebook): self
  194.     {
  195.         $this->facebook $facebook;
  196.         return $this;
  197.     }
  198.     public function getYoutube(): ?string
  199.     {
  200.         return $this->youtube;
  201.     }
  202.     public function setYoutube(?string $youtube): self
  203.     {
  204.         $this->youtube $youtube;
  205.         return $this;
  206.     }
  207.     public function getVimeo(): ?string
  208.     {
  209.         return $this->vimeo;
  210.     }
  211.     public function setVimeo(?string $vimeo): self
  212.     {
  213.         $this->vimeo $vimeo;
  214.         return $this;
  215.     }
  216.     public function getWebsite(): ?string
  217.     {
  218.         return $this->website;
  219.     }
  220.     public function setWebsite(?string $website): self
  221.     {
  222.         $this->website $website;
  223.         return $this;
  224.     }
  225.     public function isIsDisplayDonation(): ?bool
  226.     {
  227.         return $this->isDisplayDonation;
  228.     }
  229.     public function setIsDisplayDonation(?bool $isDisplayDonation): self
  230.     {
  231.         $this->isDisplayDonation $isDisplayDonation;
  232.         return $this;
  233.     }
  234. }