title = $title; $this->references = new \Doctrine\Common\Collections\ArrayCollection(); $this->translations = new \Doctrine\Common\Collections\ArrayCollection(); } public function setDetails($details) { $this->details = $details; } public function id() { return $this->id; } public function addReference($reference) { $this->references[] = $reference; } public function references() { return $this->references; } public function addTranslation($language, $title) { $this->translations[] = new DDC117Translation($this, $language, $title); } public function getText() { return $this->details->getText(); } public function getDetails() { return $this->details; } public function getLinks() { return $this->links; } public function resetText() { $this->details = null; } public function getTranslations() { return $this->translations; } }