getDay(); if($this->getTimeStart()) { $toString .= ' / Début : '.$this->getTimeStart()->format('H:i'); } if($this->getTimeEnd()) { $toString .= ' / Fin : '.$this->getTimeEnd()->format('H:i'); } return $toString ; } public function getDay(): ?int { return $this->day; } public function setDay(int $day): self { $this->day = $day; return $this; } public function getTimeStart(): ?\DateTimeInterface { return $this->timeStart; } public function setTimeStart(?\DateTimeInterface $timeStart): self { $this->timeStart = $timeStart; return $this; } public function getTimeEnd(): ?\DateTimeInterface { return $this->timeEnd; } public function setTimeEnd(?\DateTimeInterface $timeEnd): self { $this->timeEnd = $timeEnd; return $this; } public function getSection(): ?SectionInterface { return $this->section; } public function setSection(?SectionInterface $section): self { $this->section = $section; return $this; } public function getGroupUser(): ?GroupUserInterface { return $this->groupUser; } public function setGroupUser(?GroupUserInterface $groupUser): self { $this->groupUser = $groupUser; return $this; } }