protected function mapDateTime($timestamp) { $datetime = new \DateTime(); $datetime->setTimestamp((int) $timestamp); return $datetime; }