. */ #[ORM\OneToMany(targetEntity: 'AppBundle\Entity\Core\File', mappedBy: 'eventReport', orphanRemoval: true)] #[Groups(['eventreport', 'event_details_eventreports'])] private $files; public function __construct() { $this->files = new ArrayCollection(); } /** * Sets id. * * @param int $id * * @return $this */ public function setId($id) { $this->id = $id; return $this; } /** * Gets id. * * @return int */ public function getId() { return $this->id; } /** * Set report * * @param string $report * * @return EventReport */ public function setReport($report) { $this->report = $report; return $this; } /** * Get report * * @return string */ public function getReport() { return $this->report; } /** * Set date * * @param \DateTime $date * * @return EventReport */ public function setDate($date) { $this->date = $date; return $this; } /** * Get date * * @return \DateTime */ public function getDate() { return $this->date; } /** * Set event * * @param \AppBundle\Entity\Booking\Event $event * * @return EventReport */ public function setEvent(\AppBundle\Entity\Booking\Event $event = null) { $this->event = $event; return $this; } /** * Get event * * @return \AppBundle\Entity\Booking\Event */ public function getEvent() { return $this->event; } /** * Add file * * @param File $file * * @return Message */ public function addFile(File $file) { $file->setEventReport($this); $this->files[] = $file; return $this; } /** * Remove file * * @param File $file */ public function removeFile(File $file) { $this->files->removeElement($file); } /** * Get files * * @return \Doctrine\Common\Collections\Collection */ public function getFiles() { return $this->files; } }