files = new \Doctrine\Common\Collections\ArrayCollection(); } /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * @param User $user * * @return LazaretSession */ public function setUser(User $user) { $this->user = $user; return $this; } /** * @return User */ public function getUser() { return $this->user; } /** * Set created * * @param \DateTime $created * @return LazaretSession */ public function setCreated(\DateTime $created) { $this->created = $created; return $this; } /** * Get created * * @return \DateTime */ public function getCreated() { return $this->created; } /** * Set updated * * @param \DateTime $updated * @return LazaretSession */ public function setUpdated(\DateTime $updated) { $this->updated = $updated; return $this; } /** * Get updated * * @return \DateTime */ public function getUpdated() { return $this->updated; } /** * Add files * * @param LazaretFile $files * @return LazaretSession */ public function addFile(LazaretFile $files) { $this->files[] = $files; return $this; } /** * Remove files * * @param LazaretFile $files */ public function removeFile(LazaretFile $files) { $this->files->removeElement($files); } /** * Get files * * @return \Doctrine\Common\Collections\Collection */ public function getFiles() { return $this->files; } }