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 \AppBundle\Entity\Festival $festival * * @return SerieFestival */ public function addFestival(\AppBundle\Entity\Festival $festival) { $this->festivals[] = $festival; return $this; } /** * Remove festival. * * @param \AppBundle\Entity\Festival $festival * * @return boolean TRUE if this collection contained the specified element, FALSE otherwise. */ public function removeFestival(\AppBundle\Entity\Festival $festival) { return $this->festivals->removeElement($festival); } }