src/Entity/ProjectUpdateTypeNomination.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProjectUpdateTypeNominationRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\HttpFoundation\File\File;
  7. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  8. #[ORM\Entity(repositoryClassProjectUpdateTypeNominationRepository::class)]
  9. #[Vich\Uploadable]
  10. class ProjectUpdateTypeNomination
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(length255nullabletrue)]
  17.     private ?string $name null;
  18.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  19.     private ?\DateTimeInterface $date null;
  20.     #[ORM\Column(length255nullabletrue)]
  21.     private ?string $image null;
  22.     #[Vich\UploadableField(mapping:'project_update_images'fileNameProperty:'image')]
  23.     private $imageFile;
  24.     #[ORM\ManyToOne(inversedBy'projectUpdateTypeNominations')]
  25.     private ?FilmProjectUpdate $filmProjectUpdate null;
  26.     #[ORM\ManyToOne(inversedBy'releaseUpdates')]
  27.     private ?FilmProjectUpdate $updateReleaseFilmProject null;
  28.     #[ORM\ManyToOne(inversedBy'projectUpdateTypeEvents')]
  29.     private ?FilmProjectUpdate $eventFilmProjectUpdate null;
  30.     #[ORM\ManyToOne(inversedBy'projectUpdateTypeResources')]
  31.     private ?FilmProjectUpdate $resourceFilmProjectUpdate null;
  32.     #[ORM\ManyToOne(inversedBy'projectUpdateTypeResponse')]
  33.     private ?FilmProjectUpdate $responseFilmProjectUpdate null;
  34.     #[ORM\ManyToOne(inversedBy'projectUpdateTypeInvolves')]
  35.     private ?FilmProjectUpdate $involveFilmProjectUpdate null;
  36.     #[ORM\ManyToOne(inversedBy'projectUpdateTypeOthers')]
  37.     private ?FilmProjectUpdate $otherFilmProjectUpdate null;
  38.     #[ORM\Column(length255nullabletrue)]
  39.     private ?string $confirmedBroadcaster null;
  40.     #[ORM\Column(length255nullabletrue)]
  41.     private ?string $distributor null;
  42.     #[ORM\Column(length255nullabletrue)]
  43.     private ?string $streamingService null;
  44.     #[ORM\Column(length255nullabletrue)]
  45.     private ?string $upcomingEvent null;
  46.     #[ORM\Column(length255nullabletrue)]
  47.     private ?string $eventBroadcast null;
  48.     #[ORM\Column(length255nullabletrue)]
  49.     private ?string $cinemaRelease null;
  50.     #[ORM\Column(length255nullabletrue)]
  51.     private ?string $studyGuide null;
  52.     #[ORM\Column(length255nullabletrue)]
  53.     private ?string $educationalDistributor null;
  54.     #[ORM\Column(length255nullabletrue)]
  55.     private ?string $media null;
  56.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  57.     private ?string $audienceResponse null;
  58.     #[ORM\Column(length255nullabletrue)]
  59.     private ?string $generalTitle null;
  60.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  61.     private ?string $generalDescription null;
  62.     public function getId(): ?int
  63.     {
  64.         return $this->id;
  65.     }
  66.     public function getName(): ?string
  67.     {
  68.         return $this->name;
  69.     }
  70.     public function setName(?string $name): self
  71.     {
  72.         $this->name $name;
  73.         return $this;
  74.     }
  75.     public function getDate(): ?\DateTimeInterface
  76.     {
  77.         return $this->date;
  78.     }
  79.     public function setDate(?\DateTimeInterface $date): self
  80.     {
  81.         $this->date $date;
  82.         return $this;
  83.     }
  84.     public function getImage(): ?string
  85.     {
  86.         return $this->image;
  87.     }
  88.     public function setImage(?string $image): self
  89.     {
  90.         $this->image $image;
  91.         return $this;
  92.     }
  93.     public function getImageFile()
  94.     {
  95.         return $this->imageFile;
  96.     }
  97.     public function setImageFile(File $image null)
  98.     {
  99.         $this->imageFile $image;
  100.     }
  101.     public function getImageUrl(): ?string
  102.     {
  103.         $url '';
  104.         if ($this->image) {
  105.             $url '/uploads/projects/updates/' $this->image;
  106.         }
  107.         return $url;
  108.     }
  109.     public function getFilmProjectUpdate(): ?FilmProjectUpdate
  110.     {
  111.         return $this->filmProjectUpdate;
  112.     }
  113.     public function setFilmProjectUpdate(?FilmProjectUpdate $filmProjectUpdate): self
  114.     {
  115.         $this->filmProjectUpdate $filmProjectUpdate;
  116.         return $this;
  117.     }
  118.     public function __toString()
  119.     {
  120.         if ($this->name) {
  121.             return $this->name;
  122.         }
  123.         return '';
  124.     }
  125.     public function getUpdateReleaseFilmProject(): ?FilmProjectUpdate
  126.     {
  127.         return $this->updateReleaseFilmProject;
  128.     }
  129.     public function setUpdateReleaseFilmProject(?FilmProjectUpdate $updateReleaseFilmProject): self
  130.     {
  131.         $this->updateReleaseFilmProject $updateReleaseFilmProject;
  132.         return $this;
  133.     }
  134.     public function getEventFilmProjectUpdate(): ?FilmProjectUpdate
  135.     {
  136.         return $this->eventFilmProjectUpdate;
  137.     }
  138.     public function setEventFilmProjectUpdate(?FilmProjectUpdate $eventFilmProjectUpdate): self
  139.     {
  140.         $this->eventFilmProjectUpdate $eventFilmProjectUpdate;
  141.         return $this;
  142.     }
  143.     public function getResourceFilmProjectUpdate(): ?FilmProjectUpdate
  144.     {
  145.         return $this->resourceFilmProjectUpdate;
  146.     }
  147.     public function setResourceFilmProjectUpdate(?FilmProjectUpdate $resourceFilmProjectUpdate): self
  148.     {
  149.         $this->resourceFilmProjectUpdate $resourceFilmProjectUpdate;
  150.         return $this;
  151.     }
  152.     public function getResponseFilmProjectUpdate(): ?FilmProjectUpdate
  153.     {
  154.         return $this->responseFilmProjectUpdate;
  155.     }
  156.     public function setResponseFilmProjectUpdate(?FilmProjectUpdate $responseFilmProjectUpdate): self
  157.     {
  158.         $this->responseFilmProjectUpdate $responseFilmProjectUpdate;
  159.         return $this;
  160.     }
  161.     public function getInvolveFilmProjectUpdate(): ?FilmProjectUpdate
  162.     {
  163.         return $this->involveFilmProjectUpdate;
  164.     }
  165.     public function setInvolveFilmProjectUpdate(?FilmProjectUpdate $involveFilmProjectUpdate): self
  166.     {
  167.         $this->involveFilmProjectUpdate $involveFilmProjectUpdate;
  168.         return $this;
  169.     }
  170.     public function getOtherFilmProjectUpdate(): ?FilmProjectUpdate
  171.     {
  172.         return $this->otherFilmProjectUpdate;
  173.     }
  174.     public function setOtherFilmProjectUpdate(?FilmProjectUpdate $otherFilmProjectUpdate): self
  175.     {
  176.         $this->otherFilmProjectUpdate $otherFilmProjectUpdate;
  177.         return $this;
  178.     }
  179.     public function getConfirmedBroadcaster(): ?string
  180.     {
  181.         return $this->confirmedBroadcaster;
  182.     }
  183.     public function setConfirmedBroadcaster(?string $confirmedBroadcaster): self
  184.     {
  185.         $this->confirmedBroadcaster $confirmedBroadcaster;
  186.         return $this;
  187.     }
  188.     public function getDistributor(): ?string
  189.     {
  190.         return $this->distributor;
  191.     }
  192.     public function setDistributor(?string $distributor): self
  193.     {
  194.         $this->distributor $distributor;
  195.         return $this;
  196.     }
  197.     public function getStreamingService(): ?string
  198.     {
  199.         return $this->streamingService;
  200.     }
  201.     public function setStreamingService(?string $streamingService): self
  202.     {
  203.         $this->streamingService $streamingService;
  204.         return $this;
  205.     }
  206.     public function getUpcomingEvent(): ?string
  207.     {
  208.         return $this->upcomingEvent;
  209.     }
  210.     public function setUpcomingEvent(?string $upcomingEvent): self
  211.     {
  212.         $this->upcomingEvent $upcomingEvent;
  213.         return $this;
  214.     }
  215.     public function getEventBroadcast(): ?string
  216.     {
  217.         return $this->eventBroadcast;
  218.     }
  219.     public function setEventBroadcast(?string $eventBroadcast): self
  220.     {
  221.         $this->eventBroadcast $eventBroadcast;
  222.         return $this;
  223.     }
  224.     public function getCinemaRelease(): ?string
  225.     {
  226.         return $this->cinemaRelease;
  227.     }
  228.     public function setCinemaRelease(?string $cinemaRelease): self
  229.     {
  230.         $this->cinemaRelease $cinemaRelease;
  231.         return $this;
  232.     }
  233.     public function getStudyGuide(): ?string
  234.     {
  235.         return $this->studyGuide;
  236.     }
  237.     public function setStudyGuide(?string $studyGuide): self
  238.     {
  239.         $this->studyGuide $studyGuide;
  240.         return $this;
  241.     }
  242.     public function getEducationalDistributor(): ?string
  243.     {
  244.         return $this->educationalDistributor;
  245.     }
  246.     public function setEducationalDistributor(?string $educationalDistributor): self
  247.     {
  248.         $this->educationalDistributor $educationalDistributor;
  249.         return $this;
  250.     }
  251.     public function getMedia(): ?string
  252.     {
  253.         return $this->media;
  254.     }
  255.     public function setMedia(?string $media): self
  256.     {
  257.         $this->media $media;
  258.         return $this;
  259.     }
  260.     public function getAudienceResponse(): ?string
  261.     {
  262.         return $this->audienceResponse;
  263.     }
  264.     public function setAudienceResponse(?string $audienceResponse): self
  265.     {
  266.         $this->audienceResponse $audienceResponse;
  267.         return $this;
  268.     }
  269.     public function getGeneralTitle(): ?string
  270.     {
  271.         return $this->generalTitle;
  272.     }
  273.     public function setGeneralTitle(?string $generalTitle): self
  274.     {
  275.         $this->generalTitle $generalTitle;
  276.         return $this;
  277.     }
  278.     public function getGeneralDescription(): ?string
  279.     {
  280.         return $this->generalDescription;
  281.     }
  282.     public function setGeneralDescription(?string $generalDescription): self
  283.     {
  284.         $this->generalDescription $generalDescription;
  285.         return $this;
  286.     }
  287. }