user; } /** * @param mixed $user */ public function setUser($user) { $this->user = $user; } /** * @return int */ public function getId() { return $this->id; } /** * @param int $id */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getName() { return $this->name; } /** * @param string $name */ public function setName($name) { $this->name = $name; } /** * @return mixed */ public function getFestivals() { return $this->festivals; } /** * @param mixed $festivals */ public function setFestivals($festivals) { $this->festivals = $festivals; } /** * @return \DateTime */ public function getDateCreation() { return $this->dateCreation; } /** * @param \DateTime $dateCreation */ public function setDateCreation($dateCreation) { $this->dateCreation = $dateCreation; } /** * Constructor */ public function __construct() { $this->festivals = new \Doctrine\Common\Collections\ArrayCollection(); } /** * Add festival. * * @param \App\Entity\Festival $festival * * @return SerieFestival */ public function addFestival(\App\Entity\Festival $festival) { $this->festivals[] = $festival; return $this; } /** * Remove festival. * * @param \App\Entity\Festival $festival * * @return boolean TRUE if this collection contained the specified element, FALSE otherwise. */ public function removeFestival(\App\Entity\Festival $festival) { return $this->festivals->removeElement($festival); } public function getAdmin(): ?Admin { return $this->admin; } public function setAdmin(?Admin $admin): static { $this->admin = $admin; return $this; } }