id = $id; return $this; } /** * Gets id. * * @return int */ public function getId() { return $this->id; } /** * Set educationTeacher * * @param \AppBundle\Entity\Education\EducationTeacher $educationTeacher * * @return SeizurePeriodNotation */ public function setEducationTeacher(\AppBundle\Entity\Education\EducationTeacher $educationTeacher) { $this->educationTeacher = $educationTeacher; return $this; } /** * Get educationTeacher * * @return \AppBundle\Entity\Education\EducationTeacher */ public function getEducationTeacher() { return $this->educationTeacher; } /** * Gets full label. * * @return string */ public function getFullLabelTemplate() { $startDate = new \DateTime($this->getStartDate()); $endDate = new \DateTime($this->getEndDate()); return [ $startDate->format('d-m-Y'), 'to', $endDate->format('d-m-Y') ]; } }