public function setEducationalDetails($arrEducation) { $objUserDetails = new UserDetails(); if ($objUser->getUserId() != NULL) { $objUserDetails->setInstituteName($arrEducation['institute_name']); $objUserDetails->setInstituteId($objUser->institute_id); $objUserDetails->setYearOfCompletion($objUser->year_of_completion); $objUserDetails->setCourseId($objUser->course_id); $objUserDetails->setCourseName($objUser->course_name); $objUserDetails->setSpecificationId($objUser->specification_id); $objUserDetails->setSpecificationName($objUser->specification_name); } }