public function getReportString($data) { $res = 'Follow-up appointment booked for ' . @$data['appointment_date']; if (@$data['appointment_time']) { $res .= ' at ' . $data['appointment_time']; } return $res; }