name = $name; $this->city = $city; $this->infos = new ArrayCollection(); } public function getId() { return $this->id; } public function setId($id) { $this->id = $id; } public function getName() { return $this->name; } public function setName($name) { $this->name = $name; } public function getCity() { return $this->city; } public function setCity(City $city) { $this->city = $city; } public function getInfos() { return $this->infos; } public function addInfo(AttractionInfo $info) { if ( ! $this->infos->contains($info)) { $this->infos->add($info); } } }