/** * Get end * * @return \DateTime */ public function getEnd() { if ($this->getAllDay()) { $this->end->setTime(23, 59, 59); } return $this->end; }