public static function setSignupCredentials($arrUserInfo) { $objUserDetails = new UserDetails(); $objUserDetails->setUserId(''); $objUserDetails->setName($arrUserInfo['name']); $objUserDetails->setPassword($arrUserInfo['password']); $objUserDetails->setEmail($arrUserInfo['email']); return $objUserDetails; }