id = $id; return $this; } /** * Gets id. * * @return int */ public function getId() { return $this->id; } /** * Sets person. * * @param Person $person * * @return $this */ public function setPerson(Person $person) { $this->person = $person; return $this; } /** * Gets person. * * @return Person */ public function getPerson() { return $this->person; } /** * Sets establishment. * * @param string $establishment * * @return $this */ public function setEstablishment($establishment) { $this->establishment = $establishment; return $this; } /** * Gets establishment. * * @return string */ public function getEstablishment() { return $this->establishment; } /** * Sets city. * * @param string $city * * @return $this */ public function setCity($city) { $this->city = $city; return $this; } /** * Gets city. * * @return string */ public function getCity() { return $this->city; } /** * Sets teaching. * * @param string $teaching * * @return $this */ public function setTeaching($teaching) { $this->teaching = $teaching; return $this; } /** * Gets teaching. * * @return string */ public function getTeaching() { return $this->teaching; } /** * Sets beginDate. * * @param \DateTime $beginDate * * @return $this */ public function setBeginDate(\DateTime $beginDate = null) { $this->beginDate = $beginDate; return $this; } /** * Gets beginDate. * * @return \DateTime */ public function getBeginDate() { return $this->beginDate; } /** * Sets endDate. * * @param \DateTime $endDate * * @return $this */ public function setEndDate(\DateTime $endDate = null) { $this->endDate = $endDate; return $this; } /** * Gets endDate. * * @return \DateTime */ public function getEndDate() { return $this->endDate; } }