public static function setProfessionalDetails($objProfession) { $objUserDetails = new UserDetails(); if ($objProfession->getUserId() != NULL) { $objUserDetails->setOrganisation($objProfession->arrUserDetails[Constants::ORGANISATION]); $objUserDetails->setSpecification($objProfession->arrUserDetails[Constants::SPECIFICATION]); $objUserDetails->setProfession($objProfession->arrUserDetails[Constants::PROFESSION]); $objUserDetails->setContact($objProfession->arrUserDetails[Constants::CONTACT]); } }