src/Entity/FilmProjectUpdate.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FilmProjectUpdateRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassFilmProjectUpdateRepository::class)]
  9. class FilmProjectUpdate
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(nullabletrue)]
  16.     private array $category = [];
  17.     #[ORM\Column(nullabletrue)]
  18.     private array $content = [];
  19.     #[ORM\ManyToOne(inversedBy'filmProjectUpdates')]
  20.     private ?FilmProject $filmProject null;
  21.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  22.     private ?\DateTimeInterface $createdAt null;
  23.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  24.     private ?\DateTimeInterface $modifiedAt null;
  25.     #[ORM\OneToMany(mappedBy'filmProjectUpdate'targetEntityProjectUpdateTypeNomination::class, cascade: ['persist''remove'])]
  26.     private Collection $projectUpdateTypeNominations;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $projectProgress null;
  29.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  30.     private ?string $projectMilestoneUpdate null;
  31.     #[ORM\Column(length255nullabletrue)]
  32.     private ?string $fundraisingFunder null;
  33.     #[ORM\Column(length255nullabletrue)]
  34.     private ?string $fundraisingCampaign null;
  35.     #[ORM\Column(nullabletrue)]
  36.     private ?float $fundraisingGoal null;
  37.     #[ORM\Column(typeTypes::ARRAY, nullabletrue)]
  38.     private array $partnerships = [];
  39.     #[ORM\OneToMany(mappedBy'updateReleaseFilmProject'targetEntityProjectUpdateTypeNomination::class, cascade: ['persist''remove'])]
  40.     private Collection $releaseUpdates;
  41.     #[ORM\OneToMany(mappedBy'eventFilmProjectUpdate'targetEntityProjectUpdateTypeNomination::class, cascade: ['persist''remove'])]
  42.     private Collection $projectUpdateTypeEvents;
  43.     #[ORM\OneToMany(mappedBy'resourceFilmProjectUpdate'targetEntityProjectUpdateTypeNomination::class, cascade: ['persist''remove'])]
  44.     private Collection $projectUpdateTypeResources;
  45.     #[ORM\OneToMany(mappedBy'responseFilmProjectUpdate'targetEntityProjectUpdateTypeNomination::class, cascade: ['persist''remove'])]
  46.     private Collection $projectUpdateTypeResponse;
  47.     #[ORM\OneToMany(mappedBy'involveFilmProjectUpdate'targetEntityProjectUpdateTypeNomination::class, cascade: ['persist''remove'])]
  48.     private Collection $projectUpdateTypeInvolves;
  49.     #[ORM\OneToMany(mappedBy'otherFilmProjectUpdate'targetEntityProjectUpdateTypeNomination::class, cascade: ['persist''remove'])]
  50.     private Collection $projectUpdateTypeOthers;
  51.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  52.     private ?string $impactEducation null;
  53.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  54.     private ?string $impactAwareness null;
  55.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  56.     private ?string $impactAction null;
  57.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  58.     private ?string $impactSystemChange null;
  59.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  60.     private ?string $impactCommunityOutcomes null;
  61.     #[ORM\Column(length255nullabletrue)]
  62.     private ?string $image null;
  63.     #[ORM\Column(length255nullabletrue)]
  64.     private ?string $title null;
  65.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  66.     private ?string $description null;
  67.     #[ORM\Column(length255nullabletrue)]
  68.     private ?string $email null;
  69.     public function __construct()
  70.     {
  71.         $this->projectUpdateTypeNominations = new ArrayCollection();
  72.         $this->releaseUpdates = new ArrayCollection();
  73.         $this->projectUpdateTypeEvents = new ArrayCollection();
  74.         $this->projectUpdateTypeResources = new ArrayCollection();
  75.         $this->projectUpdateTypeResponse = new ArrayCollection();
  76.         $this->projectUpdateTypeInvolves = new ArrayCollection();
  77.         $this->projectUpdateTypeOthers = new ArrayCollection();
  78.     }
  79.     public function getId(): ?int
  80.     {
  81.         return $this->id;
  82.     }
  83.     public function getCategory(): ?array
  84.     {
  85.         return $this->category;
  86.     }
  87.     public function setCategory(?array $category): self
  88.     {
  89.         $this->category $category;
  90.         return $this;
  91.     }
  92.     public function getContent(): array
  93.     {
  94.         return $this->content;
  95.     }
  96.     public function setContent(?array $content): self
  97.     {
  98.         $this->content $content;
  99.         return $this;
  100.     }
  101.     public function getFilmProject(): ?FilmProject
  102.     {
  103.         return $this->filmProject;
  104.     }
  105.     public function setFilmProject(?FilmProject $filmProject): self
  106.     {
  107.         $this->filmProject $filmProject;
  108.         return $this;
  109.     }
  110.     public function getCreatedAt(): ?\DateTimeInterface
  111.     {
  112.         return $this->createdAt;
  113.     }
  114.     public function setCreatedAt(?\DateTimeInterface $createdAt): self
  115.     {
  116.         $this->createdAt $createdAt;
  117.         return $this;
  118.     }
  119.     public function getModifiedAt(): ?\DateTimeInterface
  120.     {
  121.         return $this->modifiedAt;
  122.     }
  123.     public function setModifiedAt(?\DateTimeInterface $modifiedAt): self
  124.     {
  125.         $this->modifiedAt $modifiedAt;
  126.         return $this;
  127.     }
  128.     /**
  129.      * @return Collection<int, ProjectUpdateTypeNomination>
  130.      */
  131.     public function getProjectUpdateTypeNominations(): Collection
  132.     {
  133.         return $this->projectUpdateTypeNominations;
  134.     }
  135.     public function addProjectUpdateTypeNomination(ProjectUpdateTypeNomination $projectUpdateTypeNomination): self
  136.     {
  137.         if (!$this->projectUpdateTypeNominations->contains($projectUpdateTypeNomination)) {
  138.             $this->projectUpdateTypeNominations->add($projectUpdateTypeNomination);
  139.             $projectUpdateTypeNomination->setFilmProjectUpdate($this);
  140.         }
  141.         return $this;
  142.     }
  143.     public function removeProjectUpdateTypeNomination(ProjectUpdateTypeNomination $projectUpdateTypeNomination): self
  144.     {
  145.         if ($this->projectUpdateTypeNominations->removeElement($projectUpdateTypeNomination)) {
  146.             // set the owning side to null (unless already changed)
  147.             if ($projectUpdateTypeNomination->getFilmProjectUpdate() === $this) {
  148.                 $projectUpdateTypeNomination->setFilmProjectUpdate(null);
  149.             }
  150.         }
  151.         return $this;
  152.     }
  153.     public function getProjectProgress(): ?string
  154.     {
  155.         return $this->projectProgress;
  156.     }
  157.     public function setProjectProgress(?string $projectProgress): self
  158.     {
  159.         $this->projectProgress $projectProgress;
  160.         return $this;
  161.     }
  162.     public function getProjectMilestoneUpdate(): ?string
  163.     {
  164.         return $this->projectMilestoneUpdate;
  165.     }
  166.     public function setProjectMilestoneUpdate(?string $projectMilestoneUpdate): self
  167.     {
  168.         $this->projectMilestoneUpdate $projectMilestoneUpdate;
  169.         return $this;
  170.     }
  171.     public function getFundraisingFunder(): ?string
  172.     {
  173.         return $this->fundraisingFunder;
  174.     }
  175.     public function setFundraisingFunder(?string $fundraisingFunder): self
  176.     {
  177.         $this->fundraisingFunder $fundraisingFunder;
  178.         return $this;
  179.     }
  180.     public function getFundraisingCampaign(): ?string
  181.     {
  182.         return $this->fundraisingCampaign;
  183.     }
  184.     public function setFundraisingCampaign(?string $fundraisingCampaign): self
  185.     {
  186.         $this->fundraisingCampaign $fundraisingCampaign;
  187.         return $this;
  188.     }
  189.     public function getFundraisingGoal(): ?float
  190.     {
  191.         return $this->fundraisingGoal;
  192.     }
  193.     public function setFundraisingGoal(?float $fundraisingGoal): self
  194.     {
  195.         $this->fundraisingGoal $fundraisingGoal;
  196.         return $this;
  197.     }
  198.     public function getPartnerships(): array
  199.     {
  200.         return $this->partnerships;
  201.     }
  202.     public function setPartnerships(?array $partnerships): self
  203.     {
  204.         $this->partnerships $partnerships;
  205.         return $this;
  206.     }
  207.     /**
  208.      * @return Collection<int, ProjectUpdateTypeNomination>
  209.      */
  210.     public function getReleaseUpdates(): Collection
  211.     {
  212.         return $this->releaseUpdates;
  213.     }
  214.     public function addReleaseUpdate(ProjectUpdateTypeNomination $releaseUpdate): self
  215.     {
  216.         if (!$this->releaseUpdates->contains($releaseUpdate)) {
  217.             $this->releaseUpdates->add($releaseUpdate);
  218.             $releaseUpdate->setUpdateReleaseFilmProject($this);
  219.         }
  220.         return $this;
  221.     }
  222.     public function removeReleaseUpdate(ProjectUpdateTypeNomination $releaseUpdate): self
  223.     {
  224.         if ($this->releaseUpdates->removeElement($releaseUpdate)) {
  225.             // set the owning side to null (unless already changed)
  226.             if ($releaseUpdate->getUpdateReleaseFilmProject() === $this) {
  227.                 $releaseUpdate->setUpdateReleaseFilmProject(null);
  228.             }
  229.         }
  230.         return $this;
  231.     }
  232.     /**
  233.      * @return Collection<int, ProjectUpdateTypeNomination>
  234.      */
  235.     public function getProjectUpdateTypeEvents(): Collection
  236.     {
  237.         return $this->projectUpdateTypeEvents;
  238.     }
  239.     public function addProjectUpdateTypeEvent(ProjectUpdateTypeNomination $projectUpdateTypeEvent): self
  240.     {
  241.         if (!$this->projectUpdateTypeEvents->contains($projectUpdateTypeEvent)) {
  242.             $this->projectUpdateTypeEvents->add($projectUpdateTypeEvent);
  243.             $projectUpdateTypeEvent->setEventFilmProjectUpdate($this);
  244.         }
  245.         return $this;
  246.     }
  247.     public function removeProjectUpdateTypeEvent(ProjectUpdateTypeNomination $projectUpdateTypeEvent): self
  248.     {
  249.         if ($this->projectUpdateTypeEvents->removeElement($projectUpdateTypeEvent)) {
  250.             // set the owning side to null (unless already changed)
  251.             if ($projectUpdateTypeEvent->getEventFilmProjectUpdate() === $this) {
  252.                 $projectUpdateTypeEvent->setEventFilmProjectUpdate(null);
  253.             }
  254.         }
  255.         return $this;
  256.     }
  257.     /**
  258.      * @return Collection<int, ProjectUpdateTypeNomination>
  259.      */
  260.     public function getProjectUpdateTypeResources(): Collection
  261.     {
  262.         return $this->projectUpdateTypeResources;
  263.     }
  264.     public function addProjectUpdateTypeResource(ProjectUpdateTypeNomination $projectUpdateTypeResource): self
  265.     {
  266.         if (!$this->projectUpdateTypeResources->contains($projectUpdateTypeResource)) {
  267.             $this->projectUpdateTypeResources->add($projectUpdateTypeResource);
  268.             $projectUpdateTypeResource->setResourceFilmProjectUpdate($this);
  269.         }
  270.         return $this;
  271.     }
  272.     public function removeProjectUpdateTypeResource(ProjectUpdateTypeNomination $projectUpdateTypeResource): self
  273.     {
  274.         if ($this->projectUpdateTypeResources->removeElement($projectUpdateTypeResource)) {
  275.             // set the owning side to null (unless already changed)
  276.             if ($projectUpdateTypeResource->getResourceFilmProjectUpdate() === $this) {
  277.                 $projectUpdateTypeResource->setResourceFilmProjectUpdate(null);
  278.             }
  279.         }
  280.         return $this;
  281.     }
  282.     /**
  283.      * @return Collection<int, ProjectUpdateTypeNomination>
  284.      */
  285.     public function getProjectUpdateTypeResponse(): Collection
  286.     {
  287.         return $this->projectUpdateTypeResponse;
  288.     }
  289.     public function addProjectUpdateTypeResponse(ProjectUpdateTypeNomination $projectUpdateTypeResponse): self
  290.     {
  291.         if (!$this->projectUpdateTypeResponse->contains($projectUpdateTypeResponse)) {
  292.             $this->projectUpdateTypeResponse->add($projectUpdateTypeResponse);
  293.             $projectUpdateTypeResponse->setResponseFilmProjectUpdate($this);
  294.         }
  295.         return $this;
  296.     }
  297.     public function removeProjectUpdateTypeResponse(ProjectUpdateTypeNomination $projectUpdateTypeResponse): self
  298.     {
  299.         if ($this->projectUpdateTypeResponse->removeElement($projectUpdateTypeResponse)) {
  300.             // set the owning side to null (unless already changed)
  301.             if ($projectUpdateTypeResponse->getResponseFilmProjectUpdate() === $this) {
  302.                 $projectUpdateTypeResponse->setResponseFilmProjectUpdate(null);
  303.             }
  304.         }
  305.         return $this;
  306.     }
  307.     /**
  308.      * @return Collection<int, ProjectUpdateTypeNomination>
  309.      */
  310.     public function getProjectUpdateTypeInvolves(): Collection
  311.     {
  312.         return $this->projectUpdateTypeInvolves;
  313.     }
  314.     public function addProjectUpdateTypeInvolve(ProjectUpdateTypeNomination $projectUpdateTypeInvolve): self
  315.     {
  316.         if (!$this->projectUpdateTypeInvolves->contains($projectUpdateTypeInvolve)) {
  317.             $this->projectUpdateTypeInvolves->add($projectUpdateTypeInvolve);
  318.             $projectUpdateTypeInvolve->setInvolveFilmProjectUpdate($this);
  319.         }
  320.         return $this;
  321.     }
  322.     public function removeProjectUpdateTypeInvolve(ProjectUpdateTypeNomination $projectUpdateTypeInvolve): self
  323.     {
  324.         if ($this->projectUpdateTypeInvolves->removeElement($projectUpdateTypeInvolve)) {
  325.             // set the owning side to null (unless already changed)
  326.             if ($projectUpdateTypeInvolve->getInvolveFilmProjectUpdate() === $this) {
  327.                 $projectUpdateTypeInvolve->setInvolveFilmProjectUpdate(null);
  328.             }
  329.         }
  330.         return $this;
  331.     }
  332.     /**
  333.      * @return Collection<int, ProjectUpdateTypeNomination>
  334.      */
  335.     public function getProjectUpdateTypeOthers(): Collection
  336.     {
  337.         return $this->projectUpdateTypeOthers;
  338.     }
  339.     public function addProjectUpdateTypeOther(ProjectUpdateTypeNomination $projectUpdateTypeOther): self
  340.     {
  341.         if (!$this->projectUpdateTypeOthers->contains($projectUpdateTypeOther)) {
  342.             $this->projectUpdateTypeOthers->add($projectUpdateTypeOther);
  343.             $projectUpdateTypeOther->setOtherFilmProjectUpdate($this);
  344.         }
  345.         return $this;
  346.     }
  347.     public function removeProjectUpdateTypeOther(ProjectUpdateTypeNomination $projectUpdateTypeOther): self
  348.     {
  349.         if ($this->projectUpdateTypeOthers->removeElement($projectUpdateTypeOther)) {
  350.             // set the owning side to null (unless already changed)
  351.             if ($projectUpdateTypeOther->getOtherFilmProjectUpdate() === $this) {
  352.                 $projectUpdateTypeOther->setOtherFilmProjectUpdate(null);
  353.             }
  354.         }
  355.         return $this;
  356.     }
  357.     public function getImpactEducation(): ?string
  358.     {
  359.         return $this->impactEducation;
  360.     }
  361.     public function setImpactEducation(?string $impactEducation): self
  362.     {
  363.         $this->impactEducation $impactEducation;
  364.         return $this;
  365.     }
  366.     public function getImpactAwareness(): ?string
  367.     {
  368.         return $this->impactAwareness;
  369.     }
  370.     public function setImpactAwareness(?string $impactAwareness): self
  371.     {
  372.         $this->impactAwareness $impactAwareness;
  373.         return $this;
  374.     }
  375.     public function getImpactAction(): ?string
  376.     {
  377.         return $this->impactAction;
  378.     }
  379.     public function setImpactAction(?string $impactAction): self
  380.     {
  381.         $this->impactAction $impactAction;
  382.         return $this;
  383.     }
  384.     public function getImpactSystemChange(): ?string
  385.     {
  386.         return $this->impactSystemChange;
  387.     }
  388.     public function setImpactSystemChange(?string $impactSystemChange): self
  389.     {
  390.         $this->impactSystemChange $impactSystemChange;
  391.         return $this;
  392.     }
  393.     public function getImpactCommunityOutcomes(): ?string
  394.     {
  395.         return $this->impactCommunityOutcomes;
  396.     }
  397.     public function setImpactCommunityOutcomes(?string $impactCommunityOutcomes): self
  398.     {
  399.         $this->impactCommunityOutcomes $impactCommunityOutcomes;
  400.         return $this;
  401.     }
  402.     public function getImage(): ?string
  403.     {
  404.         return $this->image;
  405.     }
  406.     public function setImage(?string $image): self
  407.     {
  408.         $this->image $image;
  409.         return $this;
  410.     }
  411.     public function getImageUrl(): ?string
  412.     {
  413.         $url '';
  414.         if ($this->image) {
  415.             $url '/uploads/projects/updates/' $this->image;
  416.         }
  417.         return $url;
  418.     }
  419.     public function getTitle(): ?string
  420.     {
  421.         return $this->title;
  422.     }
  423.     public function setTitle(?string $title): self
  424.     {
  425.         $this->title $title;
  426.         return $this;
  427.     }
  428.     public function getDescription(): ?string
  429.     {
  430.         return $this->description;
  431.     }
  432.     public function setDescription(?string $description): self
  433.     {
  434.         $this->description $description;
  435.         return $this;
  436.     }
  437.     public function getEmail(): ?string
  438.     {
  439.         return $this->email;
  440.     }
  441.     public function setEmail(?string $email): self
  442.     {
  443.         $this->email $email;
  444.         return $this;
  445.     }
  446. }